mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STY: General clean up
This commit is contained in:
@ -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_;
|
||||
|
||||
@ -96,9 +96,8 @@ class interfaceHeight
|
||||
|
||||
//- Interpolation scheme
|
||||
word interpolationScheme_;
|
||||
|
||||
|
||||
//- Direction of interface motion
|
||||
|
||||
//- Direction of interface motion
|
||||
vector direction_;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user