CreateVar

Creates a new variable (St_Var).

Synopsis

PetscErrorCode CreateVar(const char *name, ktypeIp interpType,
    PetscReal minValue, PetscReal maxValue, PetscReal linRelax,
    PetscReal fdtRelax, PetscReal resRef, PetscReal corrRef,
    Ptr_Prop initValues, Ptr_Prop gamma, Ptr_Var *ret)

Input parameters

name - Name of the variable.
interpType - The type of interpolation to its value in the faces of the cells. Use ktypeIp values.
minvalue, maxvalue - Minimum and maximum values of the variable. @param ivar The number (macro) of the defined variable.
linRelax, fdtRelax - Relaxations of the variable.
resRef, corrRef - Reference value of the variable residual and correction vector.
initialValues - Property for the initial values of the variable.
gamma - Property for the gamma values of the variable.

Output parameters

ret -The new variable.

Keywords

create, variable

See Also

VarSetup, VarSetInterpolation, VarSetLimits, VarSetRelaxation,
VarSetReference, VarSetProperties

Level:developer
Location:
src/var.c
Index of all MICSc routines
Table of Contents for all manual pages
Index of all manual pages