[Getdp] Curl of vector field in postprocessing

Andre Antunes andre.antunes at tuebingen.mpg.de
Tue May 14 15:06:13 CEST 2013


Dear getdp community

I am trying to calculate the curl of a vector field defined in Function (e.g. loaded with GmshRead)

For example, in this trivial case:

Function {
  dadt[] = Vector[0, -Z[]/2, Y[]/2];
  // etc
}

PostProcessing {
  //etc
  Quantity {
    {Name B; Value {Local { [ {Curl dadt[]} ]; In Omega; }}}
  }
}

I understand that the curly brackets and Curl work with quantities defined in Formulation, but in this case, I simply want the curl of the predefined Vector. Does any one have a clue how it can be done?

Thank you in advance.
Cordial regards,
Andre