mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: potentialFoam - phi output now controlled by the -writephi command line option
This commit is contained in:
@ -83,6 +83,7 @@ Description
|
|||||||
\heading Options
|
\heading Options
|
||||||
\plaintable
|
\plaintable
|
||||||
-writep | write the Euler pressure
|
-writep | write the Euler pressure
|
||||||
|
-writephi | Write the final volumetric flux
|
||||||
-writePhi | Write the final velocity potential
|
-writePhi | Write the final velocity potential
|
||||||
-initialiseUBCs | Update the velocity boundaries before solving for Phi
|
-initialiseUBCs | Update the velocity boundaries before solving for Phi
|
||||||
\endplaintable
|
\endplaintable
|
||||||
@ -114,6 +115,12 @@ int main(int argc, char *argv[])
|
|||||||
"Initialise U boundary conditions"
|
"Initialise U boundary conditions"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
argList::addBoolOption
|
||||||
|
(
|
||||||
|
"writephi",
|
||||||
|
"Write the final volumetric flux field"
|
||||||
|
);
|
||||||
|
|
||||||
argList::addBoolOption
|
argList::addBoolOption
|
||||||
(
|
(
|
||||||
"writePhi",
|
"writePhi",
|
||||||
@ -185,11 +192,16 @@ int main(int argc, char *argv[])
|
|||||||
<< (sqrt(sum(sqr(fvc::flux(U) - phi)))/sum(mesh.magSf())).value()
|
<< (sqrt(sum(sqr(fvc::flux(U) - phi)))/sum(mesh.magSf())).value()
|
||||||
<< endl;
|
<< endl;
|
||||||
|
|
||||||
// Write U and phi
|
// Write U
|
||||||
U.write();
|
U.write();
|
||||||
phi.write();
|
|
||||||
|
|
||||||
// Optionally write Phi
|
// Optionally write the volumetric flux, phi
|
||||||
|
if (args.found("writephi"))
|
||||||
|
{
|
||||||
|
phi.write();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Optionally write velocity potential, Phi
|
||||||
if (args.found("writePhi"))
|
if (args.found("writePhi"))
|
||||||
{
|
{
|
||||||
Phi.write();
|
Phi.write();
|
||||||
|
|||||||
Reference in New Issue
Block a user