GetDP API reference

GetDP.ProblemType
Problem

The main problem definition class that brings together all the components.

source
GetDP.AbsMethod
Abs(expression)

Generate the GetDP string representation for the absolute value/modulus function Abs[...]. (Works for complex numbers).

source
GetDP.AcosMethod
Acos(expression)

Generate the GetDP string representation for the arc cosine function Acos[...]. Domain: expression in [-1, 1]. Range: [0, Pi]. (Real valued only).

source
GetDP.AsinMethod
Asin(expression)

Generate the GetDP string representation for the arc sine function Asin[...]. Domain: expression in [-1, 1]. Range: [-Pi/2, Pi/2]. (Real valued only).

source
GetDP.AtIndexMethod
AtIndex(index_expr, list_expr::String)

Generate the GetDP string representation for accessing list element by index: AtIndex[index]{list}. list_expr is a comma-separated string list. Index is 0-based(? check GetDP docs).

source
GetDP.AtanMethod
Atan(expression)

Generate the GetDP string representation for the arc tangent function Atan[...]. Range: [-Pi/2, Pi/2]. (Real valued only).

source
GetDP.Atan2Method
Atan2(y, x)

Generate the GetDP string representation for the arc tangent function Atan2[y, x]. Computes atan(y/x). Range: [-Pi, Pi]. (Real valued only).

source
GetDP.CeilMethod
Ceil(expression)

Generate the GetDP string representation for the ceiling function Ceil[...]. Rounds upwards. (Real valued only).

source
GetDP.CompElementNumMethod
CompElementNum()

Generate the GetDP string representation to compare current and source element tags: CompElementNum[]. Returns 0 if identical.

source
GetDP.ComplexScalarFieldMethod
ComplexScalarField(expression, expression_cst_list; timestep=0, elmt_interp=true)

Generate GetDP string for evaluating complex scalar fields: ComplexScalarField[expr, ts, interp]{list}.

source
GetDP.ComplexTensorFieldMethod
ComplexTensorField(expression, expression_cst_list; timestep=0, elmt_interp=true)

Generate GetDP string for evaluating complex tensor fields: ComplexTensorField[expr, ts, interp]{list}.

source
GetDP.ComplexVectorFieldMethod
ComplexVectorField(expression, expression_cst_list; timestep=0, elmt_interp=true)

Generate GetDP string for evaluating complex vector fields: ComplexVectorField[expr, ts, interp]{list}.

source
GetDP.CosMethod
Cos(expression)

Generate the GetDP string representation for the cosine function Cos[...].

source
GetDP.Cos_wt_pMethod
Cos_wt_p(omega, phase)

Generate the GetDP string representation for the time function Cos_wt_p[]{omega, phase}. Real: Cos[omega*Time + phase]. Complex: Complex[Cos[phase], Sin[phase]].

source
GetDP.CoshMethod
Cosh(expression)

Generate the GetDP string representation for the hyperbolic cosine function Cosh[...].

source
GetDP.CrossMethod
Cross(vector1, vector2)

Generate the GetDP string representation for the cross product Cross[vector1, vector2]. Arguments must be vectors.

source
GetDP.DetMethod
Det(expression)

Generate the GetDP string representation for the tensor determinant function Det[...]. Expression must be a tensor.

source
GetDP.EdgesOfMethod
EdgesOf(group::Group, args...; Not=nothing, kwargs...)

Edges of elements of R1 (Not: but not those of R2).

source
GetDP.EdgesOfTreeInMethod
EdgesOfTreeIn(group::Group, args...; StartingOn=nothing, kwargs...)

Edges of a tree of edges of R1 < StartingOn: a complete tree is first built on R2 >.

source
GetDP.ElementNumMethod
ElementNum()

Generate the GetDP string representation for the current element's tag: ElementNum[].

source
GetDP.ElementVolMethod
ElementVol()

Generate the GetDP string representation for the element's volume (or area/length): ElementVol[].

source
GetDP.ElementsOfMethod
ElementsOf(group::Group, args...; OnOneSideOf=nothing, OnPositiveSideOf=nothing, Not=nothing, kwargs...)

Elements of regions in R1.

  • OnOneSideOf: only elements on one side of R2 (non-automatic, i.e., both sides if both in R1)
  • OnPositiveSideOf: only elements on positive (normal) side of R2
  • Not: but not those touching only its skin R3 (mandatory for free skins for correct separation of side layers)
source
GetDP.ExpMethod
Exp(expression)

Generate the GetDP string representation for the exponential function Exp[...]. Example: Exp("x") returns "Exp[x]".

source
GetDP.FabsMethod
Fabs(expression)

Generate the GetDP string representation for the absolute value function Fabs[...]. (Real valued only).

source
GetDP.FacetsOfMethod
FacetsOf(group::Group, args...; Not=nothing, kwargs...)

Facets of elements of R1 (Not: but not those of R2).

source
GetDP.FacetsOfTreeInMethod
FacetsOfTreeIn(group::Group, args...; StartingOn=nothing, kwargs...)

Facets of a tree of facets of R1 < StartingOn: a complete tree is first built on R2 >.

source
GetDP.FieldMethod
Field(eval_point_expr, tags_list_expr::String)

Generate the GetDP string representation for evaluating and summing specific Gmsh fields: Field[eval_point]{tags_list}. tags_list_expr is a comma-separated list of field tags.

source
GetDP.FieldMethod
Field(eval_point_expr)

Generate the GetDP string representation for evaluating the last Gmsh field: Field[eval_point]. Typically eval_point_expr is XYZ[].

source
GetDP.FloorMethod
Floor(expression)

Generate the GetDP string representation for the floor function Floor[...]. Rounds downwards. (Real valued only).

source
GetDP.FmodMethod
Fmod(x, y)

Generate the GetDP string representation for the floating-point remainder function Fmod[x, y]. Remainder of x/y with sign of x. (Real valued only).

source
GetDP.GetMemoryMethod
GetMemory()

Generate GetDP string for getting memory usage (MB): GetMemory[].

source
GetDP.GetNumElementsFunction
GetNumElements(list_expr::String="")

Generate the GetDP string representation for counting elements: GetNumElements[]{list}. list_expr is a comma-separated string of physical region tags, or empty for the current region.

source
GetDP.GetNumberRunTimeMethod
GetNumberRunTime(name::String; default_value=nothing)

Generate GetDP string for getting a ONELAB variable at runtime: GetNumberRunTime["name"] or GetNumberRunTime["name"]{default}.

source
GetDP.GetVariableMethod
GetVariable(variable_id::String; default_value=nothing)

Generate GetDP string for getting a runtime variable: GetVariable[]{variable_id} or GetVariable[default]{variable_id}.

source
GetDP.GetVolumeMethod
GetVolume()

Generate the GetDP string representation for the volume of the current physical group: GetVolume[].

source
GetDP.GlobalMethod
Global(group::Group, args...; kwargs...)

Regions in R1 (variant of Region used with global BasisFunctions BFGlobal and BFdGlobal).

source
GetDP.GroupOfRegionsOfMethod
GroupOfRegionsOf(group::Group, args...; kwargs...)

Single group of elements of regions in R1 (with basis function BF_Region just one DOF is created for all elements of R1).

source
GetDP.GroupsOfEdgesOfMethod
GroupsOfEdgesOf(group::Group, args...; InSupport=nothing, kwargs...)

Groups of edges of elements of R1 (a group is associated with each region). < InSupport: in a support R2 being a group of type ElementOf, i.e., containing elements >.

source
GetDP.GroupsOfEdgesOnNodesOfMethod
GroupsOfEdgesOnNodesOf(group::Group, args...; Not=nothing, kwargs...)

Groups of edges incident to nodes of elements of R1 (a group is associated with each node). < Not: but not those of R2) >.

source
GetDP.GroupsOfNodesOfMethod
GroupsOfNodesOf(group::Group, args...; kwargs...)

Groups of nodes of elements of R1 (a group is associated with each region).

source
GetDP.HypotMethod
Hypot(a, b)

Generate the GetDP string representation for the hypotenuse function Hypot[a, b]. Computes Sqrt(a^2 + b^2).

source
GetDP.InterpolationAkimaMethod
InterpolationAkima(x_expr, table_list_expr::String)

Generate the GetDP string representation for Akima interpolation: InterpolationAkima[x]{table}. table_list_expr is a comma-separated list of x,y pairs: "x1,y1,x2,y2,...".

source
GetDP.InterpolationBilinearMethod
InterpolationBilinear(x_expr, y_expr, table_list_expr::String)

Generate the GetDP string representation for bilinear interpolation: InterpolationBilinear[x, y]{table}. Table format needs checking in GetDP docs.

source
GetDP.InterpolationLinearMethod
InterpolationLinear(x_expr, table_list_expr::String)

Generate the GetDP string representation for linear interpolation: InterpolationLinear[x]{table}. table_list_expr is a comma-separated list of x,y pairs: "x1,y1,x2,y2,...".

source
GetDP.InvMethod
Inv(expression)

Generate the GetDP string representation for the inverse tensor function Inv[...]. Expression must be a tensor.

source
GetDP.JnMethod
Jn(order, value)

Generate the GetDP string representation for the Bessel function of the first kind Jn[order, value]. (Real valued only).

source
GetDP.LogMethod
Log(expression)

Generate the GetDP string representation for the natural logarithm function Log[...]. Example: Log("x") returns "Log[x]".

source
GetDP.Log10Method
Log10(expression)

Generate the GetDP string representation for the base-10 logarithm function Log10[...]. Example: Log10("x") returns "Log10[x]".

source
GetDP.MaxMethod
Max(a, b)

Generate the GetDP string representation for the maximum function Max[a, b]. (Scalar, real valued only).

source
GetDP.MinMethod
Min(a, b)

Generate the GetDP string representation for the minimum function Min[a, b]. (Scalar, real valued only).

source
GetDP.NodesOfMethod
NodesOf(group::Group, args...; Not=nothing, kwargs...)

Nodes of elements of R1 (Not: but not those of R2).

source
GetDP.NormMethod
Norm(expression)

Generate the GetDP string representation for the norm function Norm[...]. Absolute value for scalar, Euclidean norm for vector.

source
GetDP.NormalMethod
Normal()

Generate the GetDP string representation for the element's normal vector: Normal[].

source
GetDP.NormalSourceMethod
NormalSource()

Generate the GetDP string representation for the source element's normal vector: NormalSource[]. (Valid in Integral quantity).

source
GetDP.OrderMethod
Order(quantity_name)

Generate the GetDP string representation for getting interpolation order: Order[quantity].

source
GetDP.PeriodMethod
Period(expression, period_const)

Generate the GetDP string representation for the periodic function Period[expr]{period_const}. Result is always in [0, period_const[.

source
GetDP.PrintfMethod
Printf(expression)

Generate the GetDP string representation for printing a value during evaluation: Printf[expression].

source
GetDP.QuadraturePointIndexMethod
QuadraturePointIndex()

Generate the GetDP string representation for the current quadrature point index: QuadraturePointIndex[].

source
GetDP.RandMethod
Rand(max_val)

Generate the GetDP string representation for a pseudo-random number in [0, maxval]: `Rand[maxval]`.

source
GetDP.RotateMethod
Rotate(object, rot_x, rot_y, rot_z)

Generate the GetDP string representation for the rotation function Rotate[object, rx, ry, rz]. Rotates a vector or tensor object by angles rot_x, rot_y, rot_z (radians) around axes x, y, z.

source
GetDP.ScalarFieldMethod
ScalarField(expression, expression_cst_list; timestep=0, elmt_interp=true)

Generate GetDP string for evaluating scalar fields: ScalarField[expr, ts, interp]{list}.

source
GetDP.SetNumberRunTimeMethod
SetNumberRunTime(value_expr, name::String)

Generate GetDP string for setting a ONELAB variable at runtime: SetNumberRunTime[value]{"name"}.

source
GetDP.SetVariableMethod
SetVariable(value_expr, variable_id::String)

Generate GetDP string for setting a runtime variable: SetVariable[value]{variable_id}.

source
GetDP.SignMethod
Sign(expression)

Generate the GetDP string representation for the sign function Sign[...]. Returns -1 for expression < 0, 1 otherwise. (Real valued only).

source
GetDP.SinMethod
Sin(expression)

Generate the GetDP string representation for the sine function Sin[...].

source
GetDP.Sin_wt_pMethod
Sin_wt_p(omega, phase)

Generate the GetDP string representation for the time function Sin_wt_p[]{omega, phase}. Real: Sin[omega*Time + phase]. Complex: Complex[Sin[phase], -Cos[phase]].

source
GetDP.SinhMethod
Sinh(expression)

Generate the GetDP string representation for the hyperbolic sine function Sinh[...].

source
GetDP.SqrtMethod
Sqrt(expression)

Generate the GetDP string representation for the square root function Sqrt[...]. Example: Sqrt("x") returns "Sqrt[x]".

source
GetDP.SquNormMethod
SquNorm(expression)

Generate the GetDP string representation for the square norm function SquNorm[...]. Equivalent to Norm[expression]^2.

source
GetDP.SurfaceAreaFunction
SurfaceArea(list_expr::String="")

Generate the GetDP string representation for surface area calculation: SurfaceArea[]{list}. list_expr is a comma-separated string of physical surface tags, or empty for the current surface.

source
GetDP.TTraceMethod
TTrace(tensor)

Generate the GetDP string representation for the tensor trace function TTrace[...]. Expression must be a tensor.

source
GetDP.TanMethod
Tan(expression)

Generate the GetDP string representation for the tangent function Tan[...].

source
GetDP.TangentMethod
Tangent()

Generate the GetDP string representation for the element's tangent vector: Tangent[]. (Valid for line elements).

source
GetDP.TangentSourceMethod
TangentSource()

Generate the GetDP string representation for the source element's tangent vector: TangentSource[]. (Valid in Integral quantity, line elements).

source
GetDP.TanhMethod
Tanh(expression)

Generate the GetDP string representation for the hyperbolic tangent function Tanh[...]. (Real valued only).

source
GetDP.TanhC2Method
TanhC2(expression)

Generate the GetDP string representation for the complex hyperbolic tangent function TanhC2[...].

source
GetDP.TensorFieldMethod
TensorField(expression, expression_cst_list; timestep=0, elmt_interp=true)

Generate GetDP string for evaluating tensor fields: TensorField[expr, ts, interp]{list}.

source
GetDP.TransposeMethod
Transpose(expression)

Generate the GetDP string representation for the transpose function Transpose[...]. Expression must be a tensor.

source
GetDP.UnitMethod
Unit(expression)

Generate the GetDP string representation for the unit vector function Unit[...]. Computes expression / Norm[expression]. Returns 0 if norm is near zero.

source
GetDP.ValueFromIndexMethod
ValueFromIndex(list_expr::String)

Generate GetDP string for getting value from index map: ValueFromIndex[]{list}. List format: "entity1, value1, entity2, value2, ...".

source
GetDP.ValueFromTableMethod
ValueFromTable(default_expr, table_name::String)

Generate GetDP string for getting value from PostOperation table: ValueFromTable[default]{"table_name"}.

source
GetDP.VectorFieldMethod
VectorField(expression, expression_cst_list; timestep=0, elmt_interp=true)

Generate GetDP string for evaluating vector fields: VectorField[expr, ts, interp]{list}.

source
GetDP.VectorFromIndexMethod
VectorFromIndex(list_expr::String)

Generate GetDP string for getting vector from index map: VectorFromIndex[]{list}. List format: "entity1, v1x, v1y, v1z, entity2, v2x, ...".

source
GetDP.VolumesOfMethod
VolumesOf(group::Group, args...; Not=nothing, kwargs...)

Volumes of elements of R1 (Not: but not those of R2).

source
GetDP.YnMethod
Yn(order, value)

Generate the GetDP string representation for the Bessel function of the second kind Yn[order, value]. (Real valued only).

source
GetDP.add!Function
add!(group::Group, id="domain", glist=[1], gtype="Region"; operation="=", comment=nothing, kwargs...)

Add an expression to the Group object. The default group type is "Region". Use operation="=" to define a group or operation="+=" to extend an existing group.

source
GetDP.add!Method
add!(base::Base_, args...; kwargs...)

Add a SimpleItem to a Base_ object.

source
GetDP.add!Method
add!(case::Case_, args...; kwargs...)

Add a CaseItem_ to a Case_ object.

source
GetDP.add!Method
add!(constraint::Constraint, name; type="Assign", comment=nothing)

Add a constraint to the Constraint object. Returns the ConstraintItem for adding cases.

source
GetDP.add!Method
add!(formulation::Formulation, Name, Type; kwargs...)

Add a formulation item to a formulation.

source
GetDP.add!Method
add!(equation::Equation, term_type::String, term::String; kwargs...)

Add an equation term to an equation.

source
GetDP.add!Method
add!(func::Function, id, expression; comment=nothing)

Add a simple function to the Function object.

source
GetDP.add!Method
add!(func::Function, id; expression, arguments=String[], region=String[], comment=nothing)

Add a function to the Function object with optional region and arguments.

source
GetDP.add!Method
add!(obj::ObjectItem, args...; kwargs...)

Add a Case_ to an ObjectItem.

source
GetDP.add!Method
add!(postoperation::PostOperation, id, NameOfPostProcessing; kwargs...)

Add a post-operation item.

source
GetDP.add!Method
add!(postprocessing::PostProcessing, name::String, NameOfFormulation::String; kwargs...)

Add a post-processing item.

source
GetDP.add!Method
add!(resolution::Resolution, id, system_name; kwargs...)

Add a resolution with system and operation to the Resolution object.

source
GetDP.add_akima!Method
add_akima!(func::Function, id, x, y; comment=nothing)

Add an Akima interpolation function to the Function object.

source
GetDP.add_analytic!Method
add_analytic!(func::Function, id, expression; comment=nothing)

Add an analytic function to the Function object.

source
GetDP.add_comment!Function
add_comment!(obj::GetDPObject, comment_text, newline=true)

Add a comment to the object's content.

source
GetDP.add_comment!Function
add_comment!(postoperation::PostOperation, comment_text, newline=true)

Add a comment to the PostOperation object.

source
GetDP.add_comment!Function
add_comment!(func::Function, comment_text, newline=true)

Add a comment to the Function object.

source
GetDP.add_comment!Function
add_comment!(formulation::Formulation, comment_text, newline=true)

Add a comment to the Formulation object.

source
GetDP.add_comment!Function
add_comment!(resolution::Resolution, comment_text, newline=true)

Add a comment to the Resolution object.

source
GetDP.add_comment!Function
add_comment!(constraint::Constraint, comment_text, newline=true)

Add a comment to the Constraint object.

source
GetDP.add_comment!Function
add_comment!(postprocessing::PostProcessing, comment_text, newline=true)

Add a comment to the PostProcessing object.

source
GetDP.add_comment!Function
add_comment!(problem::Problem, comment_text, newline=true)

Add a comment to the Problem object.

source
GetDP.add_comment!Method
add_comment!(group::group, comment_text, newline=true)

Add a comment to the group object.

source
GetDP.add_constant!Method
add_constant!(func::Function, variable, value; comment=nothing)

Add a global constant to the Function object.

source
GetDP.add_equation!Method
add_equation!(item::FormulationItem, args...; kwargs...)

Add an equation to a formulation item.

source
GetDP.add_file!Method
add_file!(func::Function, id, filename; comment=nothing)

Add a function from a file to the Function object.

source
GetDP.add_list!Method
add_list!(func::Function, id, expression_list; comment=nothing)

Add a list of functions to the Function object.

source
GetDP.add_piecewise!Method
add_piecewise!(func::Function, id, x, y; comment=nothing)

Add a piecewise function to the Function object.

source
GetDP.add_quantity!Method
add_quantity!(item::FormulationItem, name::String; kwargs...)

Add a quantity to a formulation item.

source
GetDP.add_raw_codeFunction
add_raw_code(s, raw_code, newline=true)

Add raw code to a string, optionally with a newline.

source
GetDP.add_raw_code!Function
add_raw_code!(obj::GetDPObject, raw_code, newline=true)

Add raw code to the object's content.

source
GetDP.add_raw_code!Function
add_raw_code!(postoperation::PostOperation, raw_code, newline=true)

Add raw code to the PostOperation object.

source
GetDP.add_raw_code!Function
add_raw_code!(func::Function, raw_code, newline=true)

Add raw code to the Function object.

source
GetDP.add_raw_code!Function
add_raw_code!(formulation::Formulation, raw_code, newline=true)

Add raw code to the Formulation object.

source
GetDP.add_raw_code!Function
add_raw_code!(resolution::Resolution, raw_code, newline=true)

Add raw code to the Resolution object.

source
GetDP.add_raw_code!Function
add_raw_code!(postprocessing::PostProcessing, raw_code, newline=true)

Add raw code to the PostProcessing object.

source
GetDP.add_raw_code!Function
add_raw_code!(constraint::Constraint, raw_code, newline=true)

Add raw code to the Constraint object.

source
GetDP.add_raw_code!Function
add_raw_code!(problem::Problem, raw_code, newline=true)

Add raw code to the Problem object.

source
GetDP.add_space!Function
add_space!(group::Group, num_spaces::Int=1)

Add a specified number of empty lines to the Group object's content for spacing in the output.

source
GetDP.add_space!Function
add_space!(function::Function, num_spaces::Int=1)

Add a specified number of empty lines to the function object's content for spacing in the output.

source
GetDP.assign!Method
assign!(constraint::Constraint, name; comment=nothing)

Add an Assign-type constraint to the Constraint object (shortcut for add!). Returns the ConstraintItem for adding cases.

source
GetDP.case!Method
case!(item::ConstraintItem, region; value=nothing, time_function=nothing, comment=nothing)

Add a case to a ConstraintItem with specified region and parameters.

source
GetDP.codeMethod
code(constraint::Constraint)

Generate GetDP code for a Constraint object.

source
GetDP.codeMethod
code(formulation::Formulation)

Generate GetDP code for a Formulation object.

source
GetDP.codeMethod
code(func::Function)

Generate GetDP code for a Function object.

source
GetDP.codeMethod
code(obj::GetDPObject)

Generate GetDP code for the object.

source
GetDP.codeMethod
code(group::Group)

Generate GetDP code for a Group object.

source
GetDP.codeMethod
code(obj::ObjectItem)

Generate GetDP code for the object item.

source
GetDP.codeMethod
code(postoperation::PostOperation)

Generate GetDP code for a PostOperation object.

source
GetDP.codeMethod
code(postprocessing::PostProcessing)

Generate GetDP code for a PostProcessing object.

source
GetDP.codeMethod
code(resolution::Resolution)

Generate GetDP code for a Resolution object.

source
GetDP.commentMethod
comment(s, style="short", newline=false)

Add a comment to a string, optionally with a newline.

source
GetDP.contentMethod
content(formulation::Formulation)

Get the content of a formulation.

source
GetDP.dInterpolationAkimaMethod
dInterpolationAkima(x_expr, table_list_expr::String)

Generate the GetDP string representation for the derivative of Akima interpolation: dInterpolationAkima[x]{table}.

source
GetDP.dInterpolationBilinearMethod
dInterpolationBilinear(x_expr, y_expr, table_list_expr::String)

Generate the GetDP string representation for the derivative of bilinear interpolation: dInterpolationBilinear[x, y]{table}. Result is a vector.

source
GetDP.dInterpolationLinearMethod
dInterpolationLinear(x_expr, table_list_expr::String)

Generate the GetDP string representation for the derivative of linear interpolation: dInterpolationLinear[x]{table}.

source
GetDP.dJnMethod
dJn(order, value)

Generate the GetDP string representation for the derivative of the Bessel function of the first kind dJn[order, value]. (Real valued only).

source
GetDP.dYnMethod
dYn(order, value)

Generate the GetDP string representation for the derivative of the Bessel function of the second kind dYn[order, value]. (Real valued only).

source
GetDP.for_loop!Method
for_loop!(item::ConstraintItem, index, range)

Set a For loop for the ConstraintItem (e.g., For k In {1:3}).

source
GetDP.make_problem!Method
make_problem!(problem::Problem)

Generate the GetDP code for all objects in the Problem, including only non-empty components.

source