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]
◆ 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.
◆ getIndexSetState()
| int8_t agx::RegularizationParameters::getIndexSetState |
( |
| ) |
const |
◆ getStorageAgent()
| agxStream::StorageAgent* agx::RegularizationParameters::getStorageAgent |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ isHolonomic()
| bool agx::RegularizationParameters::isHolonomic |
( |
| ) |
const |
◆ restore()
◆ setCompliance()
| void agx::RegularizationParameters::setCompliance |
( |
agx::Real |
c | ) |
|
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()
| void agx::RegularizationParameters::setDamping |
( |
agx::Real |
d | ) |
|
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]
| void agx::RegularizationParameters::setDampingHalfLife |
( |
agx::Real |
h, |
|
|
agx::Real |
numSteps |
|
) |
| |
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) |
◆ setIndexSetState()
| void agx::RegularizationParameters::setIndexSetState |
( |
int8_t |
state | ) |
|
Used by the solver, should in general not be called by user code.
◆ setType()
| void agx::RegularizationParameters::setType |
( |
VariableType |
type | ) |
|
Assign new type.
This affects return value of getDiagonalPerturbation.
- Parameters
-
◆ store()
The documentation for this class was generated from the following file: