Programming Reference for VirtualLab Fusion  2022.1
Public Member Functions | Public Attributes | List of all members
Constraint Class Referenceabstract

This class is subject to change. Programs using this class may require changes with a new version of VirtualLab.
Projection operator for constraint on a ComplexField object. More...

Inheritance diagram for Constraint:

Public Member Functions

abstract void Apply (ComplexField field, SamplingParameters samplingParameters)
 Constraint application. This function implements a distance minimizing projection operation. More...
 
virtual void Apply (ComplexField field, SamplingParameters samplingParameters, double projectionStrength)
 Implement variable strength projection. More...
 
virtual void Apply (ComplexField field, SamplingParameters samplingParameters, double projectionStrength, out double deviation)
 Implement variable strength projection with calculation of deviation More...
 
 Constraint ()
 Standard constructor
 
virtual double GetDeviation (ComplexField field, SamplingParameters samplingParameters)
 Calculate quadratic deviation between original field and projected field for projection strength 1 More...
 

Public Attributes

ConstraintDomain Domain
 Reference to the constraint domain containing this object.
 

Detailed Description

This class is subject to change. Programs using this class may require changes with a new version of VirtualLab.
Projection operator for constraint on a ComplexField object.

Member Function Documentation

◆ Apply() [1/3]

abstract void Apply ( ComplexField  field,
SamplingParameters  samplingParameters 
)
pure virtual

Constraint application. This function implements a distance minimizing projection operation.

Parameters
fieldField the constraint is to be applied to.
samplingParametersThe sampling parameters of the field.

◆ Apply() [2/3]

virtual void Apply ( ComplexField  field,
SamplingParameters  samplingParameters,
double  projectionStrength 
)
virtual

Implement variable strength projection.

Parameters
fieldField to be transformed
samplingParametersThe sampling parameters of the field.
projectionStrengthProjection strength (0: no projection; 1: standard projection

◆ Apply() [3/3]

virtual void Apply ( ComplexField  field,
SamplingParameters  samplingParameters,
double  projectionStrength,
out double  deviation 
)
virtual

Implement variable strength projection with calculation of deviation

Parameters
fieldField to be transformed
samplingParametersThe sampling parameters of the field.
projectionStrengthProjection strength (0: no projection; 1: standard projection
deviationReturns the quadratic deviation between original field and projected field for selected projection strength

◆ GetDeviation()

virtual double GetDeviation ( ComplexField  field,
SamplingParameters  samplingParameters 
)
virtual

Calculate quadratic deviation between original field and projected field for projection strength 1

Parameters
fieldOriginal field. Remains unmodified during this operation.
samplingParametersThe sampling parameters of the field.
Returns
Quadratic deviation between original field and projected field for projection strength 1