[Getdp] non-linear problem: how to refer to the variable

Christophe Geuzaine c.geuzaine at ulg.ac.be
Sat Dec 18 02:24:21 CET 2004


Fabian Dortu wrote:
> Hello
> 
> should I use {My_var} or Dof{My_var} to refer to the variable to solve 
> in a non-linear problem?
> 

{My_var} will give you the value from the previous iteration. Look at
http://geuz.org/getdp/wiki/MagnetoStaticsNonLinear for a complete example.

Christophe


> example:
> 
> Formulation {
>   { Name Poi_XC ; Type FemEquation;
>   Quantity {
>     { Name VAR_XC;  Type Local; NameOfSpace Hgrad_XC; }
>   }
>   Equation {
>     Galerkin { [ PAR_MAT_D[] * Dof{d VAR_XC} , {d VAR_XC} ];
>       In Vol_Wfr; Integration I1; Jacobian JacZyl;  }
>     Galerkin { [ -PAR_DEP_Gen[] , {VAR_XC} ];          
>       In Vol_Wfr; Integration I1; Jacobian JacZyl;  }
>     Galerkin { [ PAR_DEP_Rec[Dof{VAR_XC}] , {VAR_XC} ];       //  with 
> Dof{}
>      In Vol_Wfr; Integration I1; Jacobian JacZyl;  }         
>     //Galerkin { [ PAR_DEP_Rec[{VAR_XC}] , {VAR_XC} ];         //  or 
> not Dof{}  ?
>     // In Vol_Wfr; Integration I1; Jacobian JacZyl;  }    
>   }
>   }
> }
> 
> 
> Thanx,
> Fabian
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> getdp mailing list
> getdp at geuz.org
> http://www.geuz.org/mailman/listinfo/getdp


-- 
Christophe Geuzaine
Applied and Computational Mathematics, Caltech
geuzaine at acm.caltech.edu - http://geuz.org