ENH: use solution dt instead of time dt
This commit is contained in:
parent
a5ce23af33
commit
ce29cba31a
@ -504,7 +504,7 @@ void Foam::KinematicCloud<CloudType>::checkParcelProperties
|
||||
parcel.rho() = constProps_.rho0();
|
||||
}
|
||||
|
||||
const scalar carrierDt = this->db().time().deltaTValue();
|
||||
const scalar carrierDt = solution_.deltaT();
|
||||
parcel.stepFraction() = (carrierDt - lagrangianDt)/carrierDt;
|
||||
parcel.typeId() = constProps_.parcelTypeId();
|
||||
}
|
||||
|
@ -520,7 +520,7 @@ void Foam::InjectionModel<CloudType>::inject(TrackData& td)
|
||||
}
|
||||
|
||||
const scalar time = this->owner().db().time().value();
|
||||
const scalar carrierDt = this->owner().db().time().deltaTValue();
|
||||
const scalar carrierDt = this->owner().solution().deltaT();
|
||||
const polyMesh& mesh = this->owner().mesh();
|
||||
|
||||
// Prepare for next time step
|
||||
|
@ -290,7 +290,7 @@ void Foam::PatchInteractionModel<CloudType>::patchData
|
||||
}
|
||||
else
|
||||
{
|
||||
Up = (Cf - Cf00)/mesh.time().deltaTValue();
|
||||
Up = (Cf - Cf00)/this->owner().solution().deltaT();
|
||||
}
|
||||
|
||||
if (mag(dn) > SMALL)
|
||||
@ -312,7 +312,9 @@ void Foam::PatchInteractionModel<CloudType>::patchData
|
||||
// magOmega = sin(angle between unit normals)
|
||||
// Normalise omega vector by magOmega, then multiply by
|
||||
// angle/dt to give the correct angular velocity vector.
|
||||
omega *= Foam::asin(magOmega)/(magOmega*mesh.time().deltaTValue());
|
||||
omega *=
|
||||
Foam::asin(magOmega)
|
||||
/(magOmega*this->owner().solution().deltaT());
|
||||
|
||||
// Project position onto face and calculate this position
|
||||
// relative to the face centre.
|
||||
|
Loading…
Reference in New Issue
Block a user