mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Added invertAlpha option to the setAlphaField utility. Fixes #1113
This commit is contained in:
committed by
Andrew Heather
parent
ef6eb77712
commit
9f45518378
@ -177,6 +177,11 @@ int main(int argc, char *argv[])
|
|||||||
isoCutCell icc(mesh, f);
|
isoCutCell icc(mesh, f);
|
||||||
icc.volumeOfFluid(alpha1, f0);
|
icc.volumeOfFluid(alpha1, f0);
|
||||||
|
|
||||||
|
if (dict.lookupOrDefault("invertAlpha", false))
|
||||||
|
{
|
||||||
|
alpha1 = 1 - alpha1;
|
||||||
|
}
|
||||||
|
|
||||||
// Writing volScalarField alpha1
|
// Writing volScalarField alpha1
|
||||||
ISstream::defaultPrecision(18);
|
ISstream::defaultPrecision(18);
|
||||||
alpha1.write();
|
alpha1.write();
|
||||||
|
|||||||
Reference in New Issue
Block a user