mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
tidying up
This commit is contained in:
@ -66,11 +66,7 @@ void spray::inject()
|
||||
|
||||
// constT is only larger than zero for the first
|
||||
// part of the injection
|
||||
scalar constT = max
|
||||
(
|
||||
0.0,
|
||||
it->tsoi() - time0
|
||||
);
|
||||
scalar constT = max(0.0, it->tsoi() - time0);
|
||||
|
||||
// deltaT is the duration of injection during this timestep
|
||||
scalar deltaT = min
|
||||
@ -105,7 +101,8 @@ void spray::inject()
|
||||
);
|
||||
|
||||
scalar diameter = injection().d0(i, toi);
|
||||
vector direction = injection().direction(i, n, toi, diameter);
|
||||
vector direction =
|
||||
injection().direction(i, n, toi, diameter);
|
||||
vector U = injection().velocity(i, toi)*direction;
|
||||
|
||||
scalar symComponent = direction & axisOfSymmetry_;
|
||||
@ -148,7 +145,7 @@ void spray::inject()
|
||||
fuels_->components()
|
||||
);
|
||||
|
||||
injectedLiquidKE_ += 0.5*pPtr->m()*pow(mag(U), 2.0);
|
||||
injectedLiquidKE_ += 0.5*pPtr->m()*magSqr(U);
|
||||
|
||||
scalar dt = time - toi;
|
||||
|
||||
@ -156,10 +153,7 @@ void spray::inject()
|
||||
(runTime_.deltaT().value() - dt)
|
||||
/runTime_.deltaT().value();
|
||||
|
||||
bool keepParcel = pPtr->move
|
||||
(
|
||||
*this
|
||||
);
|
||||
bool keepParcel = pPtr->move(*this);
|
||||
|
||||
if (keepParcel)
|
||||
{
|
||||
|
||||
@ -89,12 +89,7 @@ void spray::move()
|
||||
|
||||
void spray::breakupLoop()
|
||||
{
|
||||
for
|
||||
(
|
||||
spray::iterator elmnt = begin();
|
||||
elmnt != end();
|
||||
++elmnt
|
||||
)
|
||||
forAllIter(spray::iterator, *this, elmnt)
|
||||
{
|
||||
// interpolate...
|
||||
vector velocity = UInterpolator().interpolate
|
||||
@ -128,12 +123,7 @@ void spray::breakupLoop()
|
||||
|
||||
void spray::atomizationLoop()
|
||||
{
|
||||
for
|
||||
(
|
||||
spray::iterator elmnt = begin();
|
||||
elmnt != end();
|
||||
++elmnt
|
||||
)
|
||||
forAllIter(spray::iterator, *this, elmnt)
|
||||
{
|
||||
// interpolate...
|
||||
vector velocity = UInterpolator().interpolate
|
||||
|
||||
Reference in New Issue
Block a user