mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
rigidBodyMeshMotion: Read initial state and g from dictionary if present
This commit is contained in:
@ -221,18 +221,11 @@ void Foam::rigidBodyMeshMotion::solve()
|
||||
curTimeIndex_ = this->db().time().timeIndex();
|
||||
}
|
||||
|
||||
dimensionedVector g("g", dimAcceleration, Zero);
|
||||
|
||||
if (db().foundObject<uniformDimensionedVectorField>("g"))
|
||||
{
|
||||
g = db().lookupObject<uniformDimensionedVectorField>("g");
|
||||
model_.g() =
|
||||
db().lookupObject<uniformDimensionedVectorField>("g").value();
|
||||
}
|
||||
else if (coeffDict().found("g"))
|
||||
{
|
||||
coeffDict().lookup("g") >> g;
|
||||
}
|
||||
|
||||
model_.g() = g.value();
|
||||
|
||||
if (test_)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user