GetDP API reference
Dates.Period — Method
Period(expression, period_const)Generate the GetDP string representation for the periodic function Period[expr]{period_const}. Result is always in [0, period_const[.
GetDP.AbstractGetDPObject — Type
GetDPObjectBase GetDP object that other objects inherit from.
GetDP.CaseItem_ — Type
CaseItem_A case item in a GetDP object.
GetDP.Case_ — Type
Case_A case in a GetDP object.
GetDP.Constraint — Type
ConstraintDefining constraints.
GetDP.Formulation — Type
FormulationBuilding equations.
GetDP.Function — Type
FunctionDefining functions.
GetDP.Group — Type
GroupDefining topological entities.
GetDP.ObjectItem — Type
ObjectItemAn object item in a GetDP object.
GetDP.PostOperation — Type
PostOperationDefining post-operations.
GetDP.PostProcessing — Type
PostProcessingDefining post-processing.
GetDP.Problem — Type
ProblemThe main problem definition class that brings together all the components.
GetDP.Resolution — Type
ResolutionDefining how to solve the problem.
GetDP.SimpleItem — Type
SimpleItemA simple item in a GetDP object.
GetDP.SystemItem — Type
SystemItemA system item in a resolution.
GetDP.Acos — Method
Acos(expression)Generate the GetDP string representation for the arc cosine function Acos[...]. Domain: expression in [-1, 1]. Range: [0, Pi]. (Real valued only).
GetDP.Asin — Method
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).
GetDP.AtIndex — Method
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).
GetDP.Atan — Method
Atan(expression)Generate the GetDP string representation for the arc tangent function Atan[...]. Range: [-Pi/2, Pi/2]. (Real valued only).
GetDP.Atan2 — Method
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).
GetDP.Ceil — Method
Ceil(expression)Generate the GetDP string representation for the ceiling function Ceil[...]. Rounds upwards. (Real valued only).
GetDP.CompElementNum — Method
CompElementNum()Generate the GetDP string representation to compare current and source element tags: CompElementNum[]. Returns 0 if identical.
GetDP.ComplexScalarField — Method
ComplexScalarField(expression, expression_cst_list; timestep=0, elmt_interp=true)Generate GetDP string for evaluating complex scalar fields: ComplexScalarField[expr, ts, interp]{list}.
GetDP.ComplexTensorField — Method
ComplexTensorField(expression, expression_cst_list; timestep=0, elmt_interp=true)Generate GetDP string for evaluating complex tensor fields: ComplexTensorField[expr, ts, interp]{list}.
GetDP.ComplexVectorField — Method
ComplexVectorField(expression, expression_cst_list; timestep=0, elmt_interp=true)Generate GetDP string for evaluating complex vector fields: ComplexVectorField[expr, ts, interp]{list}.
GetDP.Cos_wt_p — Method
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]].
GetDP.Cosh — Method
Cosh(expression)Generate the GetDP string representation for the hyperbolic cosine function Cosh[...].
GetDP.Cross — Method
Cross(vector1, vector2)Generate the GetDP string representation for the cross product Cross[vector1, vector2]. Arguments must be vectors.
GetDP.DualEdgesOf — Method
DualEdgesOf(group::Group, args...; kwargs...)Dual edges of elements of R1.
GetDP.DualFacetsOf — Method
DualFacetsOf(group::Group, args...; kwargs...)Dual facets of elements of R1.
GetDP.DualNodesOf — Method
DualNodesOf(group::Group, args...; kwargs...)Dual nodes of elements of R1.
GetDP.DualVolumesOf — Method
DualVolumesOf(group::Group, args...; kwargs...)Dual volumes of elements of R1.
GetDP.EdgesOf — Method
EdgesOf(group::Group, args...; Not=nothing, kwargs...)Edges of elements of R1 (Not: but not those of R2).
GetDP.EdgesOfTreeIn — Method
EdgesOfTreeIn(group::Group, args...; StartingOn=nothing, kwargs...)Edges of a tree of edges of R1 < StartingOn: a complete tree is first built on R2 >.
GetDP.ElementNum — Method
ElementNum()Generate the GetDP string representation for the current element's tag: ElementNum[].
GetDP.ElementVol — Method
ElementVol()Generate the GetDP string representation for the element's volume (or area/length): ElementVol[].
GetDP.ElementsOf — Method
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)
GetDP.Fabs — Method
Fabs(expression)Generate the GetDP string representation for the absolute value function Fabs[...]. (Real valued only).
GetDP.FacetsOf — Method
FacetsOf(group::Group, args...; Not=nothing, kwargs...)Facets of elements of R1 (Not: but not those of R2).
GetDP.FacetsOfTreeIn — Method
FacetsOfTreeIn(group::Group, args...; StartingOn=nothing, kwargs...)Facets of a tree of facets of R1 < StartingOn: a complete tree is first built on R2 >.
GetDP.Field — Method
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.
GetDP.Field — Method
Field(eval_point_expr)Generate the GetDP string representation for evaluating the last Gmsh field: Field[eval_point]. Typically eval_point_expr is XYZ[].
GetDP.Floor — Method
Floor(expression)Generate the GetDP string representation for the floor function Floor[...]. Rounds downwards. (Real valued only).
GetDP.Fmod — Method
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).
GetDP.GetCpuTime — Method
GetCpuTime()Generate GetDP string for getting CPU time: GetCpuTime[].
GetDP.GetMemory — Method
GetMemory()Generate GetDP string for getting memory usage (MB): GetMemory[].
GetDP.GetNumElements — Function
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.
GetDP.GetNumberRunTime — Method
GetNumberRunTime(name::String; default_value=nothing)Generate GetDP string for getting a ONELAB variable at runtime: GetNumberRunTime["name"] or GetNumberRunTime["name"]{default}.
GetDP.GetVariable — Method
GetVariable(variable_id::String; default_value=nothing)Generate GetDP string for getting a runtime variable: GetVariable[]{variable_id} or GetVariable[default]{variable_id}.
GetDP.GetVolume — Method
GetVolume()Generate the GetDP string representation for the volume of the current physical group: GetVolume[].
GetDP.GetWallClockTime — Method
GetWallClockTime()Generate GetDP string for getting wall clock time: GetWallClockTime[].
GetDP.Global — Method
Global(group::Group, args...; kwargs...)Regions in R1 (variant of Region used with global BasisFunctions BFGlobal and BFdGlobal).
GetDP.GroupOfRegionsOf — Method
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).
GetDP.GroupsOfEdgesOf — Method
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 >.
GetDP.GroupsOfEdgesOnNodesOf — Method
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) >.
GetDP.GroupsOfNodesOf — Method
GroupsOfNodesOf(group::Group, args...; kwargs...)Groups of nodes of elements of R1 (a group is associated with each region).
GetDP.Hypot — Method
Hypot(a, b)Generate the GetDP string representation for the hypotenuse function Hypot[a, b]. Computes Sqrt(a^2 + b^2).
GetDP.InterpolationAkima — Method
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,...".
GetDP.InterpolationBilinear — Method
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.
GetDP.InterpolationLinear — Method
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,...".
GetDP.Log10 — Method
Log10(expression)Generate the GetDP string representation for the base-10 logarithm function Log10[...]. Example: Log10("x") returns "Log10[x]".
GetDP.NodesOf — Method
NodesOf(group::Group, args...; Not=nothing, kwargs...)Nodes of elements of R1 (Not: but not those of R2).
GetDP.Norm — Method
Norm(expression)Generate the GetDP string representation for the norm function Norm[...]. Absolute value for scalar, Euclidean norm for vector.
GetDP.Normal — Method
Normal()Generate the GetDP string representation for the element's normal vector: Normal[].
GetDP.NormalSource — Method
NormalSource()Generate the GetDP string representation for the source element's normal vector: NormalSource[]. (Valid in Integral quantity).
GetDP.Order — Method
Order(quantity_name)Generate the GetDP string representation for getting interpolation order: Order[quantity].
GetDP.Printf — Method
Printf(expression)Generate the GetDP string representation for printing a value during evaluation: Printf[expression].
GetDP.QuadraturePointIndex — Method
QuadraturePointIndex()Generate the GetDP string representation for the current quadrature point index: QuadraturePointIndex[].
GetDP.Rand — Method
Rand(max_val)Generate the GetDP string representation for a pseudo-random number in [0, maxval]: `Rand[maxval]`.
GetDP.Region — Method
Region(group::Group, args...; kwargs...)Regions in R1.
GetDP.Rotate — Method
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.
GetDP.ScalarField — Method
ScalarField(expression, expression_cst_list; timestep=0, elmt_interp=true)Generate GetDP string for evaluating scalar fields: ScalarField[expr, ts, interp]{list}.
GetDP.SetNumberRunTime — Method
SetNumberRunTime(value_expr, name::String)Generate GetDP string for setting a ONELAB variable at runtime: SetNumberRunTime[value]{"name"}.
GetDP.SetVariable — Method
SetVariable(value_expr, variable_id::String)Generate GetDP string for setting a runtime variable: SetVariable[value]{variable_id}.
GetDP.Sign — Method
Sign(expression)Generate the GetDP string representation for the sign function Sign[...]. Returns -1 for expression < 0, 1 otherwise. (Real valued only).
GetDP.Sin_wt_p — Method
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]].
GetDP.Sinh — Method
Sinh(expression)Generate the GetDP string representation for the hyperbolic sine function Sinh[...].
GetDP.Sqrt — Method
Sqrt(expression)Generate the GetDP string representation for the square root function Sqrt[...]. Example: Sqrt("x") returns "Sqrt[x]".
GetDP.SquNorm — Method
SquNorm(expression)Generate the GetDP string representation for the square norm function SquNorm[...]. Equivalent to Norm[expression]^2.
GetDP.SurfaceArea — Function
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.
GetDP.TTrace — Method
TTrace(tensor)Generate the GetDP string representation for the tensor trace function TTrace[...]. Expression must be a tensor.
GetDP.Tangent — Method
Tangent()Generate the GetDP string representation for the element's tangent vector: Tangent[]. (Valid for line elements).
GetDP.TangentSource — Method
TangentSource()Generate the GetDP string representation for the source element's tangent vector: TangentSource[]. (Valid in Integral quantity, line elements).
GetDP.Tanh — Method
Tanh(expression)Generate the GetDP string representation for the hyperbolic tangent function Tanh[...]. (Real valued only).
GetDP.TanhC2 — Method
TanhC2(expression)Generate the GetDP string representation for the complex hyperbolic tangent function TanhC2[...].
GetDP.TensorField — Method
TensorField(expression, expression_cst_list; timestep=0, elmt_interp=true)Generate GetDP string for evaluating tensor fields: TensorField[expr, ts, interp]{list}.
GetDP.Transpose — Method
Transpose(expression)Generate the GetDP string representation for the transpose function Transpose[...]. Expression must be a tensor.
GetDP.Unit — Method
Unit(expression)Generate the GetDP string representation for the unit vector function Unit[...]. Computes expression / Norm[expression]. Returns 0 if norm is near zero.
GetDP.ValueFromIndex — Method
ValueFromIndex(list_expr::String)Generate GetDP string for getting value from index map: ValueFromIndex[]{list}. List format: "entity1, value1, entity2, value2, ...".
GetDP.ValueFromTable — Method
ValueFromTable(default_expr, table_name::String)Generate GetDP string for getting value from PostOperation table: ValueFromTable[default]{"table_name"}.
GetDP.VectorField — Method
VectorField(expression, expression_cst_list; timestep=0, elmt_interp=true)Generate GetDP string for evaluating vector fields: VectorField[expr, ts, interp]{list}.
GetDP.VectorFromIndex — Method
VectorFromIndex(list_expr::String)Generate GetDP string for getting vector from index map: VectorFromIndex[]{list}. List format: "entity1, v1x, v1y, v1z, entity2, v2x, ...".
GetDP.VolumesOf — Method
VolumesOf(group::Group, args...; Not=nothing, kwargs...)Volumes of elements of R1 (Not: but not those of R2).
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.
GetDP.add! — Method
add!(base::Base_, args...; kwargs...)Add a SimpleItem to a Base_ object.
GetDP.add! — Method
add!(case::Case_, args...; kwargs...)Add a CaseItem_ to a Case_ object.
GetDP.add! — Method
add!(constraint::Constraint, name; type="Assign", comment=nothing)Add a constraint to the Constraint object. Returns the ConstraintItem for adding cases.
GetDP.add! — Method
add!(formulation::Formulation, Name, Type; kwargs...)Add a formulation item to a formulation.
GetDP.add! — Method
add!(equation::Equation, term_type::String, term::String; kwargs...)Add an equation term to an equation.
GetDP.add! — Method
add!(func::Function, id, expression; comment=nothing)Add a simple function to the Function object.
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.
GetDP.add! — Method
add!(obj::ObjectItem, args...; kwargs...)Add a Case_ to an ObjectItem.
GetDP.add! — Method
add!(postoperation::PostOperation, id, NameOfPostProcessing; kwargs...)Add a post-operation item.
GetDP.add! — Method
add!(postprocessing::PostProcessing, name::String, NameOfFormulation::String; kwargs...)Add a post-processing item.
GetDP.add! — Method
add!(resolution::Resolution, id, system_name; kwargs...)Add a resolution with system and operation to the Resolution object.
GetDP.add! — Method
add!(resolution::Resolution, id::String, systems::Vector{SystemItem}; Operation::Vector{String})Add a resolution with one or more systems and an operation to the Resolution object.
GetDP.add_akima! — Method
add_akima!(func::Function, id, x, y; comment=nothing)Add an Akima interpolation function to the Function object.
GetDP.add_analytic! — Method
add_analytic!(func::Function, id, expression; comment=nothing)Add an analytic function to the Function object.
GetDP.add_comment! — Function
add_comment!(problem::Problem, comment_text, newline=true)Add a comment to the Problem object.
GetDP.add_comment! — Function
add_comment!(obj::GetDPObject, comment_text, newline=true)Add a comment to the object's content.
GetDP.add_comment! — Function
add_comment!(constraint::Constraint, comment_text, newline=true)Add a comment to the Constraint object.
GetDP.add_comment! — Function
add_comment!(func::Function, comment_text, newline=true)Add a comment to the Function object.
GetDP.add_comment! — Function
add_comment!(formulation::Formulation, comment_text, newline=true)Add a comment to the Formulation object.
GetDP.add_comment! — Function
add_comment!(resolution::Resolution, comment_text, newline=true)Add a comment to the Resolution object.
GetDP.add_comment! — Function
add_comment!(postprocessing::PostProcessing, comment_text, newline=true)Add a comment to the PostProcessing object.
GetDP.add_comment! — Function
add_comment!(postoperation::PostOperation, comment_text, newline=true)Add a comment to the PostOperation object.
GetDP.add_comment! — Method
add_comment!(group::group, comment_text, newline=true)Add a comment to the group object.
GetDP.add_constant! — Method
add_constant!(func::Function, variable, value; comment=nothing)Add a global constant to the Function object.
GetDP.add_equation! — Method
add_equation!(item::FormulationItem, args...; kwargs...)Add an equation to a formulation item.
GetDP.add_file! — Method
add_file!(func::Function, id, filename; comment=nothing)Add a function from a file to the Function object.
GetDP.add_list! — Method
add_list!(func::Function, id, expression_list; comment=nothing)Add a list of functions to the Function object.
GetDP.add_piecewise! — Method
add_piecewise!(func::Function, id, x, y; comment=nothing)Add a piecewise function to the Function object.
GetDP.add_quantity! — Method
add_quantity!(item::FormulationItem, name::String; kwargs...)Add a quantity to a formulation item.
GetDP.add_raw_code — Function
add_raw_code(s, raw_code, newline=true)Add raw code to a string, optionally with a newline.
GetDP.add_raw_code! — Function
add_raw_code!(group::group, raw_code, newline=true)Add raw code to the group object.
GetDP.add_raw_code! — Function
add_raw_code!(problem::Problem, raw_code, newline=true)Add raw code to the Problem object.
GetDP.add_raw_code! — Function
add_raw_code!(obj::GetDPObject, raw_code, newline=true)Add raw code to the object's content.
GetDP.add_raw_code! — Function
add_raw_code!(constraint::Constraint, raw_code, newline=true)Add raw code to the Constraint object.
GetDP.add_raw_code! — Function
add_raw_code!(func::Function, raw_code, newline=true)Add raw code to the Function object.
GetDP.add_raw_code! — Function
add_raw_code!(formulation::Formulation, raw_code, newline=true)Add raw code to the Formulation object.
GetDP.add_raw_code! — Function
add_raw_code!(resolution::Resolution, raw_code, newline=true)Add raw code to the Resolution object.
GetDP.add_raw_code! — Function
add_raw_code!(postprocessing::PostProcessing, raw_code, newline=true)Add raw code to the PostProcessing object.
GetDP.add_raw_code! — Function
add_raw_code!(postoperation::PostOperation, raw_code, newline=true)Add raw code to the PostOperation object.
GetDP.add_raw_code! — Method
add_raw_code!(poitem::PostOperationItem, raw_code)Add raw code to a PostOperationItem.
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.
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.
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.
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.
GetDP.code — Method
code(constraint::Constraint)Generate GetDP code for a Constraint object.
GetDP.code — Method
code(formulation::Formulation)Generate GetDP code for a Formulation object.
GetDP.code — Method
code(func::Function)Generate GetDP code for a Function object.
GetDP.code — Method
code(obj::GetDPObject)Generate GetDP code for the object.
GetDP.code — Method
code(group::Group)Generate GetDP code for a Group object.
GetDP.code — Method
code(obj::ObjectItem)Generate GetDP code for the object item.
GetDP.code — Method
code(postoperation::PostOperation)Generate GetDP code for a PostOperation object.
GetDP.code — Method
code(postprocessing::PostProcessing)Generate GetDP code for a PostProcessing object.
GetDP.code — Method
code(resolution::Resolution)Generate GetDP code for a Resolution object.
GetDP.comment — Method
comment(s, style="short", newline=false)Add a comment to a string, optionally with a newline.
GetDP.content — Method
content(formulation::Formulation)Get the content of a formulation.
GetDP.dInterpolationAkima — Method
dInterpolationAkima(x_expr, table_list_expr::String)Generate the GetDP string representation for the derivative of Akima interpolation: dInterpolationAkima[x]{table}.
GetDP.dInterpolationBilinear — Method
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.
GetDP.dInterpolationLinear — Method
dInterpolationLinear(x_expr, table_list_expr::String)Generate the GetDP string representation for the derivative of linear interpolation: dInterpolationLinear[x]{table}.
GetDP.define! — Function
define!(group::Group, id="domain")Define a group.
GetDP.for_loop! — Method
for_loop!(item::ConstraintItem, index, range)Set a For loop for the ConstraintItem (e.g., For k In {1:3}).
GetDP.get_code — Method
get_code(problem::Problem)Returns properly formatted GetDP code.
GetDP.get_getdp_executable — Method
get_getdp_executable()Get the path to the GetDP executable.
GetDP.include! — Method
include!(problem::Problem, incl_file)Include another GetDP file.
GetDP.make_problem! — Method
make_problem!(problem::Problem)Generate the GetDP code for all objects in the Problem, including only non-empty components.
GetDP.write_file — Method
write_file(problem::Problem)Write the GetDP code to a file.