all initialization before first evaluate()
This commit is contained in:
parent
5a9fba7a78
commit
88e6fbff82
1 changed files with 6 additions and 5 deletions
|
|
@ -105,6 +105,12 @@ flowRateTiltedInletVelocityFvPatchVectorField
|
|||
<< " 'massFlowRate' and 'rho'" << exit(FatalIOError);
|
||||
}
|
||||
|
||||
angle_ = degToRad(readScalar(dict.lookup("angle")));
|
||||
|
||||
vector axis(dict.lookup("axis"));
|
||||
|
||||
axis_ = axis / mag(axis);
|
||||
|
||||
// Value field require if mass based
|
||||
if (dict.found("value"))
|
||||
{
|
||||
|
|
@ -118,11 +124,6 @@ flowRateTiltedInletVelocityFvPatchVectorField
|
|||
evaluate(Pstream::blocking);
|
||||
}
|
||||
|
||||
angle_ = degToRad(readScalar(dict.lookup("angle")));
|
||||
|
||||
vector axis(dict.lookup("axis"));
|
||||
|
||||
axis_ = axis / mag(axis);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue