mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Reorganised private data
This commit is contained in:
@ -73,15 +73,15 @@ Foam::sixDoFRigidBodyMotion::sixDoFRigidBodyMotion()
|
||||
motionState0_(),
|
||||
restraints_(),
|
||||
constraints_(),
|
||||
tConstraints_(tensor::I),
|
||||
rConstraints_(tensor::I),
|
||||
initialCentreOfMass_(vector::zero),
|
||||
initialQ_(I),
|
||||
momentOfInertia_(diagTensor::one*VSMALL),
|
||||
mass_(VSMALL),
|
||||
aRelax_(1.0),
|
||||
aDamp_(1.0),
|
||||
report_(false),
|
||||
tConstraints_(tensor::I),
|
||||
rConstraints_(tensor::I)
|
||||
report_(false)
|
||||
{}
|
||||
|
||||
|
||||
@ -114,15 +114,15 @@ Foam::sixDoFRigidBodyMotion::sixDoFRigidBodyMotion
|
||||
motionState0_(motionState_),
|
||||
restraints_(),
|
||||
constraints_(),
|
||||
tConstraints_(tensor::I),
|
||||
rConstraints_(tensor::I),
|
||||
initialCentreOfMass_(initialCentreOfMass),
|
||||
initialQ_(initialQ),
|
||||
momentOfInertia_(momentOfInertia),
|
||||
mass_(mass),
|
||||
aRelax_(aRelax),
|
||||
aDamp_(aDamp),
|
||||
report_(report),
|
||||
tConstraints_(tensor::I),
|
||||
rConstraints_(tensor::I)
|
||||
report_(report)
|
||||
{}
|
||||
|
||||
|
||||
@ -136,6 +136,8 @@ Foam::sixDoFRigidBodyMotion::sixDoFRigidBodyMotion
|
||||
motionState0_(motionState_),
|
||||
restraints_(),
|
||||
constraints_(),
|
||||
tConstraints_(tensor::I),
|
||||
rConstraints_(tensor::I),
|
||||
initialCentreOfMass_
|
||||
(
|
||||
dict.lookupOrDefault
|
||||
@ -156,9 +158,7 @@ Foam::sixDoFRigidBodyMotion::sixDoFRigidBodyMotion
|
||||
mass_(readScalar(dict.lookup("mass"))),
|
||||
aRelax_(dict.lookupOrDefault<scalar>("accelerationRelaxation", 1.0)),
|
||||
aDamp_(dict.lookupOrDefault<scalar>("accelerationDamping", 1.0)),
|
||||
report_(dict.lookupOrDefault<Switch>("report", false)),
|
||||
tConstraints_(tensor::I),
|
||||
rConstraints_(tensor::I)
|
||||
report_(dict.lookupOrDefault<Switch>("report", false))
|
||||
{
|
||||
addRestraints(dict);
|
||||
addConstraints(dict);
|
||||
|
||||
@ -96,6 +96,12 @@ class sixDoFRigidBodyMotion
|
||||
//- Motion constaints
|
||||
PtrList<sixDoFRigidBodyMotionConstraint> constraints_;
|
||||
|
||||
//- Translational constraint tensor
|
||||
tensor tConstraints_;
|
||||
|
||||
//- Rotational constraint tensor
|
||||
tensor rConstraints_;
|
||||
|
||||
//- Centre of mass of initial state
|
||||
point initialCentreOfMass_;
|
||||
|
||||
@ -118,10 +124,6 @@ class sixDoFRigidBodyMotion
|
||||
//- Switch to turn reporting of motion data on and off
|
||||
Switch report_;
|
||||
|
||||
tensor tConstraints_;
|
||||
|
||||
tensor rConstraints_;
|
||||
|
||||
|
||||
// Private Member Functions
|
||||
|
||||
|
||||
Reference in New Issue
Block a user