Commit 319292bc authored by mattijs's avatar mattijs
Browse files

ENH: potentialFoam: add initialiseUBCs option

parent 537a916d
......@@ -44,6 +44,12 @@
fvc::interpolate(U) & mesh.Sf()
);
if (args.optionFound("initialiseUBCs"))
{
U.correctBoundaryConditions();
phi = fvc::interpolate(U) & mesh.Sf();
}
label pRefCell = 0;
scalar pRefValue = 0.0;
......
......@@ -38,6 +38,11 @@ Description
int main(int argc, char *argv[])
{
argList::addBoolOption("writep", "write the final pressure field");
argList::addBoolOption
(
"initialiseUBCs",
"initialise U boundary conditions"
);
#include "setRootCase.H"
#include "createTime.H"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment