Product: Abaqus/CFD
Utility routine SMACfdUserSubroutineGetScalar can be called from a user subroutine to access selected output variables for elements or surface facets that are part of a boundary condition definition.
#include <SMACfdUserSubroutines.h> const double* scalars = SMACfdUserSubroutineGetScalar("VAR");
VAR
Output variable key. The available variables are listed in “Available output variable keys.”
scalars
Real array containing scalar values of the output variable.
The following output variable keys are supported:
AREA: Area of the surface facet.
DENSITY: Element density.
DIV: Element divergence.
EVOL: Element volume.
TEMP: Element temperature.
TURBEPS: Element energy dissipation rate.
TURBKE: Element turbulent kinetic energy.
TURBNU: Element turbulent eddy viscosity.
TURBOMEGA: Element-specific energy dissipation rate.
A requested output variable must be valid for the energy equation setting or turbulence model for the request to be successful.
The returned array scalars corresponds to the real-valued variable that can be associated with the request output variable key VAR. If the surface associated with an output variable does not have any facets on the current processor, the pointer returned from the method will be 0. The method will throw an exception and terminate the analysis if an output variable is not available for the current model.