mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: potentialFoam: add initialiseUBCs option
This commit is contained in:
@ -44,6 +44,12 @@
|
|||||||
fvc::interpolate(U) & mesh.Sf()
|
fvc::interpolate(U) & mesh.Sf()
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if (args.optionFound("initialiseUBCs"))
|
||||||
|
{
|
||||||
|
U.correctBoundaryConditions();
|
||||||
|
phi = fvc::interpolate(U) & mesh.Sf();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
label pRefCell = 0;
|
label pRefCell = 0;
|
||||||
scalar pRefValue = 0.0;
|
scalar pRefValue = 0.0;
|
||||||
|
|||||||
@ -38,6 +38,11 @@ Description
|
|||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
argList::addBoolOption("writep", "write the final pressure field");
|
argList::addBoolOption("writep", "write the final pressure field");
|
||||||
|
argList::addBoolOption
|
||||||
|
(
|
||||||
|
"initialiseUBCs",
|
||||||
|
"initialise U boundary conditions"
|
||||||
|
);
|
||||||
|
|
||||||
#include "setRootCase.H"
|
#include "setRootCase.H"
|
||||||
#include "createTime.H"
|
#include "createTime.H"
|
||||||
|
|||||||
Reference in New Issue
Block a user