The module variables refer to those Expression Editor variables pertaining to the core Simerics-MP modules. These are categorized as:
Each module has variables and integrated quantities associated with it. The specific variable names available for a given module are listed in Module Related Expressions.
The expression module[.subname].exists is used to check if a module exists in current project.
Example 10 :
disp = trans_1D_1CV.displacement
pre = flow.P
temp = (heat.exists?) heat.T : 300
The Dependent and Independent variables: (Primary, Property and Derived) for a given module are available for access and use in expressions throughout Simerics-MP when the respective module is activated. These dependent and independent variables correspond to arrays with values at every cell in the solution domain.
The general format for using a Primary, Property and Derived Variable in the Expression Editor is: module[.subname].var
Figure 13.19 - Dependent Variables
The Common module is the shared module in Simerics-MP. It follows a different convention than the other modules, in that “share” is used in place of “common” as the module_name, such that share.var_name is used instead of common.var_name. Alternatively, the name “share” can be let out entirely such that share.var_name reduces to simply name.
share.density or share.rho: density [kg/m3]
share.porosity or share.por: porosity [ ]
share.cells_vol: cell volume [m3]
flow.pressure or flow.P: pressure [Pa]
flow.V: (vector) velocity [m/s]
flow.u/flow.v/flow.w: cartesian velocity components [m/s]
flow.viscosity or flow.mu: laminar dynamic viscosity [Pa-s]
flow.totalP: total pressure [Pa]
flow.vMag: velocity magnitude [m/s]
flow.labVr/flow.labVt/flow.labVa: velocity components in radial/ tangential/axial direction [m/s]
flow.relVr/flow.relVt/flow.relVa: relative velocity components in radial/ tangential/axial direction [m/s]
flow.relVelocity: (vector) relative velocity [m/s]
flow.vrMag: relative velocity magnitude [m/s]
flow.vorticity: (vector) vorticity [1/s]
flow.vorticityMag: vorticity magnitude [1/s]
flow.mach: Mach number [ ]
flow.sspd: speed of sound [m/s]
cavitation.Fgas: free gas mass fraction [ ]
cavitation.Fvap: vapor mass fraction [ ]
cavitation.Dgas: dissolved gas mass fraction [ ]
cavitation.volFracGas: free gas volume fraction [ ]
cavitation.volFracVap: vapor volume fraction [ ]
cavitation.volFracDGas: dissolved gas volume fraction [ ]
cavitation.volFracT: total gas phase volume fraction [ ]
cavitation.damagePower: cavitation damage power [W]
turbulence.tke: turbulent kinetic energy [m2/s2]
turbulence.ted: turbulent kinetic energy dissipation rate [m2/s3]
turbulence.muT: turbulent viscosity [Pa-s]
heat.temperatureor heat.T: temperature [K]
heat.conductivityor heat.K: heat conductivity [W/m-K]
heat.capacityor heat.C: heat capacity [J/kg-K]
heat.Ht: total enthalpy [J/kg]
heat.Et: total internal energy [J/kg]
heat.Tt: total temperature [K]
species[.subname].concentraction or species.[subname].C: concentration [ ]
species.[subname].D: diffusivity [m2/s]
component[.subname].C: component concentration [ ]
component[.subname].D: component diffusivity [m2/s]
component[.subname].soretDiff : Soret diffusivity [m2/s]
flowcomp[.subname].viscosity : component viscosity [Pa -s]
heatcomp[.subname].K : heat conductivity [W/m -K]
heatcomp[.subname].C : component heat capacity [J/kg]
sharecomp[.subname].rho : component density [kg/m3]
| ´ | Note: This section applies to the Multicomponent module Component variables only, not Mixture variables. The later are accessed via their parent module. For example, the viscosity of the mixture would be accessed via the Flow module as Mixture_Viscosity = flow.mu. |
phasecomp[.subname].vFrac: component volume fraction [ ]
flowphasecomp[.subname].viscosity: component viscosity [Pa-s]
heatphasecomp[.subname].K : component heat conductivity [W/m-K]
heatphasecomp[.subname].C: component heat capacity [J/kg-K]
sharephasecomp[.subname].rho: component density [kg/m3]
|
Note: This section applies to the Multiphase module Component variables only, not Mixture Variables. The later are accessed as via their parent module. For example, the viscosity of the mixture would be accessed via the Flow module as Mixture_Viscosity = flow.mu. |
air_visc = flowphasecomp.air.viscosity
trans_1d[.subname].displacement: displacement [m]
trans_1d[.subname].velocity: velocity [m/s]
trans_1d[.subname].accelaration: accelaration [m/s2]
trans_1d[.subname].force: force [N]
rotate_1d[.subname].angle: angle [rad]
rotate_1d[.subname].omega: angular velocity [rad/s]
rotate_1d[.subname].rpm: rotational speed in revolution per minute [rpm]
rotate_1d[.subname].torque: torque [N-m]
rotate_1d[.subname].accelaration: angular accelaration [rad/s2]
The following variables are ODE solutions before application of constraints, and corrections based on constraints. They can be used with more complicated constraints such as 2-dimensional motion inside a circle.
trans_1d[.subname].ode_displacement: initial ODE solution for displacement [m]
trans_1d[.subname].ode_velocity: initial ODE solution for velocity [m/s]
rotate_1d[.subname].ode_displacement: initial ODE solution for angular displacement [rad]
rotate_1d[.subname].ode_velocity: initial ODE solution for angular velocity [rad/s]
dy = trans_1d.Y.ode_displacement
domega = rotate_1d.Y.ode_velocity
valve_type[.subname].displacement: for Spool Valve, use name "spool_valve". [m]
disp = spool_valve.displacement
stress[.subname].Disp: (vector)displacement [m]
stress[.subname].dx: displacement component [m]
stress[.subname].dy: displacement component [m]
stress[.subname].dz: displacement component [m]
stress[.subname].E: Young's modulus [Pa]
stress[.subname].nu: Poisson's ratio [ ]
stress[.subname].alpha: thermal expansion coefficient [ ]
stress[.subname].disp_mag: displacement magnitude [m]
stress[.subname].stress_inv: stress invariant [Pa]
pump_type[.subname].angle: pump accumulated rotation angle [rad]
pump_type[.subname].omega: pump rotation speed [rad]
pump_type[.subname].rpm: pump rotation speed in rpm [rpm]
pumpspeed = gerotor.rpm
These quantities correspond to the list of output variables available for activation and to display in X-Y Plots on the Plot Panel. These quantities are stored in the filename_integral.txt file, although the specific Variable Names are typically different. Integrated Quantities pertaining to a given module are available for access and use in expressions throughout Simerics-MP/Simerics-MP+ when the respective module is activated.
Format for Integrated Variables:
When patch and volume names have no conflict:
module[.subname].variable@patch_name
module[.subname].variable@volume_name
When patch and volume or variable names have conflicts :
module[.subname].variable@patch.patch_name
module[.subname].variable@volume.volume_name
|
Note: The variables are integral values on a boundary or volume. Mostly, the name of variable is the same as in "integral.txt" file except without the suffix "_". |
Figure 13.20 - Variables in "integrals.txt"
|
|
Copyright © 2023 Simerics Inc., |