Card 9 - COSIM_EXP_BC Co-simulation Custom Expression Definition
This optional card defines a custom expression used for co-simulation between the thermal solver and an external solver.
Parameters: KODE, N1, T1, T2
KODE
KODE is the code COSIM_EXP_BC (or 137)
N1
N1 is the COSIM_EXP_BC card ID. Cards with the same ID reference the same co-simulation custom expression interface.
T1 = NAME
T1 = NAME (or 1) specifies the name of the custom expression
co-simulation interface in T2.
T1 = LENGTH
T1 = LENGTH (or 2) defines the custom expression used to compute a
length or a distance that is passed to the external solver in T2. The expression can
use named points, mathematical operators, and supported functions.
T1 = INTERNAL_ZONE
T1 = INTERNAL_ZONE (or 3) specifies the internal zone or selection
name that defines the region associated with the custom expression calculation in
T2.
T1 = INTERNAL_VARIABLE
T1 = INTERNAL_VARIABLE (or 4) specifies the type of expression in
T2.
T2 = LENGTH defines the custom expression to compute a length or
distance that is passed to the external solver.
T1 = EXTERNAL_SOLVER
T1 = EXTERNAL_SOLVER (or 5) specifies the external solver that
points to the external model in T2.
T1 = EXTERNAL_VARIABLE
T1 = EXTERNAL_VARIABLE (or 6) specifies the external solver variable
that corresponds to the computed length specified in T2.
Code example
COSIM_EXP_BC 1 BC_NAME "DisplacementSum_FMU"
EXPRESSION 6 LENGTH abs( DX("point1") ) + abs( DX("point2") )
COSIM_EXP_BC 1 LENGTH 1.000000E+00 E6
COSIM_EXP_BC 1 INTERNAL_ZONE "DisplacementSum_FMU"
COSIM_EXP_BC 1 INTERNAL_VARIABLE "LENGTH"
COSIM_EXP_BC 1 EXTERNAL_SOLVER "fmu1"
COSIM_EXP_BC 1 EXTERNAL_VARIABLE expseu__1.displacement1
