Skip to main content

optiSLang C API of FMOPSolver Library 2025 R1

Operations

Last update: 10.02.2025

Operations

API used to evalute a Field Meta Model of Optimal Prognosis (FMOP)

DYNARDO_FMOP_API fmop_error_t FMOP_approxField (const fmop_handle_t fmop, const double *param_values, double *field)
 Approximates a field response based on a vector of given active scalar input parameters. More...
 
DYNARDO_FMOP_API fmop_error_t FMOP_approxFieldExtrapolate (const fmop_handle_t fmop, const double *param_values, double *field)
 Approximates a field response based on a vector of given active scalar input parameters. More...
 

Detailed Description

Function Documentation

◆ FMOP_approxField()

DYNARDO_FMOP_API fmop_error_t FMOP_approxField ( const fmop_handle_t  fmop,
const double *  param_values,
double *  field 
)

Approximates a field response based on a vector of given active scalar input parameters.

Parameters
[in]fmopA successfully initialized fmop_handle_t data object
[in]param_valuesVector of a single sample of all active scalar input parameters. Size and parameter order are defined by the return values of FMOP_getModelParamIdents()
param_values [j]... the index j matches the parameter input name position returned in the param_idents argument of FMOP_getModelParamIdents()
sizeof ( param_values ) ... must match the num_params argument of FMOP_getModelParamIdents() The values must not be located outside the initial sampling bounds.
[out]fieldAn already initialized array of size num_mesh_items as returned by FMOP_getModelDim() On output contains the approximated field response.
Follows the scheme: $ field[k] $
k...internal mesh item ident, e.g. internal signal position, internal element number
Call FMOP_getDataPointIndices() to map internal to external numbering scheme
Returns
Call FMOP_getErrnoString() to get a human readable representation. For detailed log messages call FMOP_getLastError() which outputs internal log messages.

◆ FMOP_approxFieldExtrapolate()

DYNARDO_FMOP_API fmop_error_t FMOP_approxFieldExtrapolate ( const fmop_handle_t  fmop,
const double *  param_values,
double *  field 
)

Approximates a field response based on a vector of given active scalar input parameters.

Parameters
[in]fmopA successfully initialized fmop_handle_t data object
[in]param_valuesVector of a single sample of all active scalar input parameters. Size and parameter order are defined by the return values of FMOP_getModelParamIdents()
param_values [j]... the index j matches the parameter input name position returned in the param_idents argument of FMOP_getModelParamIdents()
sizeof ( param_values ) ... must match the num_params argument of FMOP_getModelParamIdents() The values may be located outside the initial sampling bounds.
[out]fieldAn already initialized array of size num_mesh_items as returned by FMOP_getModelDim() On output contains the approximated field response.
Follows the scheme: $ field[k] $
k...internal mesh item ident, e.g. internal signal position, internal element number
Call FMOP_getDataPointIndices() to map internal to external numbering scheme
Returns
Call FMOP_getErrnoString() to get a human readable representation. For detailed log messages call FMOP_getLastError() which outputs internal log messages.

Connect with Ansys