mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Changing
deltaT().value() to deltaTValue()
and
deltaT0().value() to deltaT0Value()
across the whole code - faster to return especially if being used
often, in each call to a submodel for example.
This commit is contained in:
@ -142,7 +142,7 @@ Foam::velocityComponentLaplacianFvMotionSolver::curPoints() const
|
||||
(
|
||||
cmpt_,
|
||||
tcurPoints().component(cmpt_)
|
||||
+ fvMesh_.time().deltaT().value()*pointMotionU_.internalField()
|
||||
+ fvMesh_.time().deltaTValue()*pointMotionU_.internalField()
|
||||
);
|
||||
|
||||
twoDCorrectPoints(tcurPoints());
|
||||
|
||||
@ -112,7 +112,7 @@ Foam::velocityLaplacianFvMotionSolver::curPoints() const
|
||||
tmp<pointField> tcurPoints
|
||||
(
|
||||
fvMesh_.points()
|
||||
+ fvMesh_.time().deltaT().value()*pointMotionU_.internalField()
|
||||
+ fvMesh_.time().deltaTValue()*pointMotionU_.internalField()
|
||||
);
|
||||
|
||||
twoDCorrectPoints(tcurPoints());
|
||||
|
||||
@ -146,7 +146,7 @@ void angularOscillatingVelocityPointPatchVectorField::updateCoeffs()
|
||||
+ (axisHat ^ p0Rel*sin(angle))
|
||||
+ (axisHat & p0Rel)*(1 - cos(angle))*axisHat
|
||||
- p.localPoints()
|
||||
)/t.deltaT().value()
|
||||
)/t.deltaTValue()
|
||||
);
|
||||
|
||||
fixedValuePointPatchField<vector>::updateCoeffs();
|
||||
|
||||
@ -125,7 +125,7 @@ void oscillatingVelocityPointPatchVectorField::updateCoeffs()
|
||||
Field<vector>::operator=
|
||||
(
|
||||
(p0_ + amplitude_*sin(omega_*t.value()) - p.localPoints())
|
||||
/t.deltaT().value()
|
||||
/t.deltaTValue()
|
||||
);
|
||||
|
||||
fixedValuePointPatchField<vector>::updateCoeffs();
|
||||
|
||||
@ -129,7 +129,7 @@ void sixDoFRigidBodyDisplacementPointPatchVectorField::updateCoeffs()
|
||||
// calculate the forces on the motion object from this data, then
|
||||
// update the positions
|
||||
|
||||
motion_.updatePosition(t.deltaT().value());
|
||||
motion_.updatePosition(t.deltaTValue());
|
||||
|
||||
dictionary forcesDict;
|
||||
|
||||
@ -157,7 +157,7 @@ void sixDoFRigidBodyDisplacementPointPatchVectorField::updateCoeffs()
|
||||
(
|
||||
fm.first().first() + fm.first().second() + gravity*motion_.mass(),
|
||||
fm.second().first() + fm.second().second(),
|
||||
t.deltaT().value()
|
||||
t.deltaTValue()
|
||||
);
|
||||
|
||||
Field<vector>::operator=(motion_.generatePositions(p0_) - p0_);
|
||||
|
||||
@ -64,7 +64,7 @@ void surfaceDisplacementPointPatchVectorField::calcProjection
|
||||
const pointField& localPoints = patch().localPoints();
|
||||
const labelList& meshPoints = patch().meshPoints();
|
||||
|
||||
//const scalar deltaT = mesh.time().deltaT().value();
|
||||
//const scalar deltaT = mesh.time().deltaTValue();
|
||||
|
||||
// Construct large enough vector in direction of projectDir so
|
||||
// we're guaranteed to hit something.
|
||||
@ -451,7 +451,7 @@ void surfaceDisplacementPointPatchVectorField::updateCoeffs()
|
||||
|
||||
// Clip offset to maximum displacement possible: velocity*timestep
|
||||
|
||||
const scalar deltaT = mesh.time().deltaT().value();
|
||||
const scalar deltaT = mesh.time().deltaTValue();
|
||||
const vector clipVelocity = velocity_*deltaT;
|
||||
|
||||
forAll(displacement, i)
|
||||
|
||||
@ -63,7 +63,7 @@ void surfaceSlipDisplacementPointPatchVectorField::calcProjection
|
||||
const pointField& localPoints = patch().localPoints();
|
||||
const labelList& meshPoints = patch().meshPoints();
|
||||
|
||||
//const scalar deltaT = mesh.time().deltaT().value();
|
||||
//const scalar deltaT = mesh.time().deltaTValue();
|
||||
|
||||
// Construct large enough vector in direction of projectDir so
|
||||
// we're guaranteed to hit something.
|
||||
|
||||
Reference in New Issue
Block a user