STY: General clean up

This commit is contained in:
sergio
2020-02-19 10:40:56 -08:00
parent 83c06f1ace
commit 514751dcf7
31 changed files with 192 additions and 836 deletions

View File

@ -55,7 +55,7 @@ void Foam::functionObjects::interfaceHeight::writePositions()
const uniformDimensionedVectorField& g =
mesh_.time().lookupObject<uniformDimensionedVectorField>("g");
vector gHat = vector::zero;
if (mag(direction_) > 0.0)
{
gHat = direction_/mag(direction_);
@ -237,7 +237,7 @@ Foam::functionObjects::interfaceHeight::interfaceHeight
{
read(dict);
resetNames({"height", "position"});
writeFileHeader(fileID::heightFile);
writeFileHeader(fileID::positionFile);
}
@ -253,7 +253,7 @@ Foam::functionObjects::interfaceHeight::~interfaceHeight()
bool Foam::functionObjects::interfaceHeight::read(const dictionary& dict)
{
dict.readIfPresent("alpha", alphaName_);
dict.readIfPresent("liquid", liquid_);
dict.lookup("locations") >> locations_;

View File

@ -96,9 +96,8 @@ class interfaceHeight
//- Interpolation scheme
word interpolationScheme_;
//- Direction of interface motion
//- Direction of interface motion
vector direction_;