Skip to content
Snippets Groups Projects
Commit 9f455183 authored by Johan Roenby's avatar Johan Roenby Committed by Andrew Heather
Browse files

ENH: Added invertAlpha option to the setAlphaField utility. Fixes #1113

parent ef6eb777
Branches
Tags
No related merge requests found
......@@ -177,6 +177,11 @@ int main(int argc, char *argv[])
isoCutCell icc(mesh, f);
icc.volumeOfFluid(alpha1, f0);
if (dict.lookupOrDefault("invertAlpha", false))
{
alpha1 = 1 - alpha1;
}
// Writing volScalarField alpha1
ISstream::defaultPrecision(18);
alpha1.write();
......
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