94 "reconstructionScheme",
101 reconstructionSchemesCoeffs_(
dict),
113 dict.getOrDefault(
"writeFields",false)
128 dict.getOrDefault(
"writeFields",false)
135 interfaceCell_(alpha1_.
mesh().nCells(), false),
136 interfaceLabels_(0.2*alpha1_.
mesh().nCells()),
137 timeIndexAndIter_(0, 0)
154 forAll(interfaceCell_, celli)
156 if (interfaceCell_[celli])
158 if (
mag(normal_[celli]) != 0)
160 interfaceCellAddressing.
set(celli);
161 vector n = -normal_[celli]/
mag(normal_[celli]);
163 scalar cutVal = (centre_[celli] -
mesh.
C()[celli]) &
n;
183 faceList faces(std::move(dynFaces));
185 return interface(std::move(pts), std::move(faces), std::move(meshCells));
const volScalarField & alpha1
const Mesh & mesh() const
Return mesh.
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
void append(const T &val)
Copy append an element to the end of this list.
T & first() noexcept
The first element of the list, position [0].
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
Defines the attributes of an object for which implicit objectRegistry management is supported,...
const T & second() const noexcept
Return second element, which is also the last element.
label timeIndex() const noexcept
Return current time index.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
void size(const label n)
Older name for setAddressableSize.
A bitSet stores bits (elements with only two states) in packed internal format and supports a variety...
labelList sortedToc() const
The indices of the on bits as a sorted labelList.
void set(const bitSet &bitset)
Set specified bits from another bitset.
Class for cutting a cell, cellI, of an fvMesh, mesh_, at its intersection with an surface defined by ...
label calcSubCell(const label celli, const scalar cutValue, const vector &normal)
Sets internal values and returns face status.
const DynamicList< point > & facePoints()
Returns the points of the cutting PLICface.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
const Time & time() const
Return reference to time.
A face is a list of labels corresponding to mesh vertices.
Mesh data needed to do the Finite Volume discretisation.
const volVectorField & C() const
Return cell centres as volVectorField.
constant condensation/saturation model.
label nCells() const noexcept
Number of mesh cells.
Original code supplied by Henning Scheufler, DLR (2019)
Pair< label > timeIndexAndIter_
Store timeindex/iteration to avoid multiple reconstruction.
bool alreadyReconstructed(bool forceUpdate=true) const
Is the interface already up-to-date?
interface surface()
Generated interface surface points/faces.
volScalarField & alpha1_
Reference to the VoF Field.
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
labelList identity(const label len, label start=0)
Return an identity map of the given length with (map[i] == i)
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
const dimensionSet dimArea(sqr(dimLength))
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
static constexpr const zero Zero
Global zero (0)
#define defineRunTimeSelectionTable(baseType, argNames)
Define run-time selection table.
interfaceProperties interface(alpha1, U, thermo->transportPropertiesDict())
#define forAll(list, i)
Loop across all elements in list.