-
Notifications
You must be signed in to change notification settings - Fork 19
Anasol context
The <anasol> context is used for specifying analytical solutions to problems. Typically, these go under an application-specific context.
Example:
<anasol type="expression">
<variables>u=x;
ux=1;
uy=0;
v=-y;
vx=0;
vy=-1;
p=1.5;
</variables>
<primary>u|v</primary>
<scalarprimary>p</scalarprimary>
<secondary>ux|uy|vx|vy</secondary>
</anasol>
Variables evaluated for all specified functions. For multiple evaluations, separate using ;.
Example:
<variables>r=sqrt(x*x+y*y); theta = cos(x/r)</variables>
The primary solution. For a scalar equation, this will be a scalar function, for vector equations this is the vector solution. Example:
<primary>r|theta</primary>
The secondary solution. For a scalar equation, this will be a vector function, while for a vector equation, this will be a tensor function.
Example:
<secondary>ux|uy|vx|vy</secondary>
This is used to specify additional scalar solutions for vector equations. E.g. for the Stokes, the primary solution is the velocity, while the scalar primary solution is the pressure. You can have any number of scalarprimary solutions. They will be ordered according to the input.
Example:
<scalarprimary>x*x</scalarprimary>
The secondary solutions associated with the scalarprimary solution. Order must match the order for the primaries.
Example:
<scalarsecondary>px|py</scalarsecondary>