Skip to main content

optiSLang 3D Postprocessing Script API 2025 R1

ModelBase Class Reference

Last update: 16.07.2025

The ModelBase class is the class all model-types derive from Models are already built and valid. More...

Public Member Functions

virtual addProperty (PropertyBase p)
 Properties that help the ScalarMOP scheduling the Models to be built The properties class needs to be implemented for the specific model type.
 
virtual Matrix evaluate (Matrix points, bool extrapolate=true)=0
 Evaluates the model on the given points and returns the values. More...
 
virtual PropertyList getProperties ()
 Returns the properties stored by this user.
 
virtual transferProperties (PropertyList property_list)
 Convenience function to transfer a complete PropertyList into the model. More...
 

Detailed Description

The ModelBase class is the class all model-types derive from Models are already built and valid.

Member Function Documentation

◆ evaluate()

virtual Matrix evaluate ( Matrix  points,
bool  extrapolate = true 
)
pure virtual

Evaluates the model on the given points and returns the values.

Parameters
pointsThe input points the model is evaluated on
extrapolateEvaluate the points outside of the bounding box of its training data
Returns
The values of the model on the given points

Implemented in CustomModel, KrigingModel, MLSModel, and RBFModel.

◆ transferProperties()

virtual transferProperties ( PropertyList  property_list)
virtualinherited

Convenience function to transfer a complete PropertyList into the model.

Parameters
property_listThe properties to transfer into this model

Connect with Ansys