All ghost variables have compliance and damping attributes.
More...
#include <RegularizationParameters.h>
All ghost variables have compliance and damping attributes.
Definition at line 29 of file RegularizationParameters.h.
◆ VariableType
◆ RegularizationParameters()
| agx::RegularizationParameters::RegularizationParameters |
( |
| ) |
|
Default constructor.
Default values: compliance = 1.0E-8, damping = 0.0333, type = HOLONOMIC.
◆ create() [1/2]
◆ create() [2/2]
◆ generateUuid()
| void agxStream::Serializable::generateUuid |
( |
| ) |
|
|
protectedinherited |
◆ getClassName()
| const char* agx::RegularizationParameters::getClassName |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ getCompliance()
| Real agx::RegularizationParameters::getCompliance |
( |
| ) |
const |
◆ getConstructClassId()
| static const char* agx::RegularizationParameters::getConstructClassId |
( |
| ) |
|
|
inlinestatic |
◆ getDamping()
| Real agx::RegularizationParameters::getDamping |
( |
| ) |
const |
◆ getDiagonalPerturbation()
| Real agx::RegularizationParameters::getDiagonalPerturbation |
( |
agx::Real |
h | ) |
const |
Internal method used by solvers.
- Parameters
-
- Returns
- the diagonal perturbation given this variables type (holonomic or non-holonomic)
Definition at line 148 of file RegularizationParameters.h.
◆ getEnableSerialization()
| bool agxStream::Serializable::getEnableSerialization |
( |
| ) |
const |
|
inherited |
- Returns
- true if serialization is enabled for this object
Definition at line 273 of file Serializable.h.
◆ getEnableUuidGeneration()
| bool agxStream::Serializable::getEnableUuidGeneration |
( |
| ) |
|
|
inherited |
- Returns
- true if Uuid:s should be generated for each new Serializable object
◆ getIndex()
| agx::UInt32 agxStream::Serializable::getIndex |
( |
| ) |
const |
|
inherited |
This index is given at creation of this object.
It is guaranteed to be unique for the lifetime of this library instance. As long as the application is running. This value is not serialized or restored. A new object will always get a new index no matter how it is created.
- Returns
- an instance index of this object. This is unique for the lifetime of this library instance.
Definition at line 247 of file Serializable.h.
◆ getIndexSetState()
| int8_t agx::RegularizationParameters::getIndexSetState |
( |
| ) |
const |
◆ getStorageAgent()
| agxStream::StorageAgent* agx::RegularizationParameters::getStorageAgent |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ getUuid()
| agx::Uuid agxStream::Serializable::getUuid |
( |
| ) |
const |
|
inherited |
◆ isFinished()
| bool agxStream::Serializable::isFinished |
( |
| ) |
const |
|
inherited |
- Returns
- true if this class is restored correctly and should not be deleted during destruction of an Archive.
Definition at line 252 of file Serializable.h.
References AGX_FORCE_INLINE.
◆ isHolonomic()
| bool agx::RegularizationParameters::isHolonomic |
( |
| ) |
const |
◆ restore()
◆ setCompliance()
Set the value of compliance which is an inverse spring constant with suitable dimensionality given linear or angular variable.
Default value: 1.0E-8, valid values: >= 0.
- Parameters
-
| c | - compliance (valid if >= 0) |
◆ setDamping()
Set the damping rate with suitable dimensionality given linear or angular variable.
Damping is used for holonomic variables only, and is a measure of the time the constraint variable have to fulfill the constraint definition (violation = 0). Default value: 0.0333, valid values: >= 0 (recommended >= time step).
- Note
- It is not recommended to set this value below the size if the integration step (time step). Damping < time step basically means that the solver has less than one time step to fulfill the constraint.
◆ setDampingHalfLife() [1/2]
Utility method to assign damping given time step used and the number of steps the solver gets to fulfill the constraint variable.
- See also
- setDamping
- Parameters
-
| h | - the time step |
| numSteps | - number of steps |
◆ setDampingHalfLife() [2/2]
Utility method to set compliance and assign damping given time step used and the number of steps the solver gets to fulfill the constraint variable.
- See also
- setDamping
- Parameters
-
| compliance | - compliance (valid if >= 0) |
| h | - the time step |
| numSteps | - number of steps (valid if > 0, recommended >= 1) |
◆ setEnableSerialization()
| void agxStream::Serializable::setEnableSerialization |
( |
bool |
flag | ) |
|
|
inherited |
Set to false to disable serialization of this object.
It will just be ignored during serialization (writing). It is still possible to restore TO this object.
◆ setEnableUuidGeneration()
| static void agxStream::Serializable::setEnableUuidGeneration |
( |
bool |
flag | ) |
|
|
staticinherited |
Specify if there should be UUID:s generated for each new Serializable object. By default it is enabled.
◆ setFinished()
| void agxStream::Serializable::setFinished |
( |
| ) |
|
|
inherited |
Tells this class that it is restored correctly and should not be deleted during destruction of an Archive.
◆ setIndexSetState()
| void agx::RegularizationParameters::setIndexSetState |
( |
int8_t |
state | ) |
|
Used by the solver, should in general not be called by user code.
◆ setType()
Assign new type.
This affects return value of getDiagonalPerturbation.
- Parameters
-
◆ setUuid()
Explicitly set a Uuid on a serializable object.
Use this method with great care, as it can result in non-unique identifiers in the system!
◆ store()
The documentation for this class was generated from the following file: