Finds the centroid of the irregular face of a 2D vof.
Arguments:
n (not modified) is the input 2D vof.
Returns:
This returns the coordinates of the centroid of the irregular face.
The coordinates have values between -0.5 and 0.5, inclusive.
The origin is at the center of the grid cell, and the grid cell
is assumed to be of unit length in all directions.
Dependencies:
getNormal and getFaceCentroid must be called before this function.
This:
This object is not modified.
Finds the centroid of a vof.
Arguments:
n (not modified) is the input vof.
Returns:
This returns the coordinates of the centroid.
The coordinates have values between -0.5 and 0.5, inclusive.
The origin is at the center of the grid cell, and the grid cell
is assumed to be of unit length in all directions.
Dependencies:
getNormal and getFaceCentroid must be called before this function.
This:
This object is not modified.
In 2D (3D) finds d where ax + by (+cz) = d.
Arguments:
n (not modified) is an Irregular vof.
Returns:
For an Irregular vof in 2D (3D), returns d where ax + by (+cz) = d,
where (a,b) ((a,b,c)) is normal to the boundary.
The grid cell is in a coordinate system with the origin at the
center of the cell, and the grid cell is assumed to be of unit
length in all directions.
Dependencies:
getNormal must be called before this is called.
This:
This object is not modified.
Calculates area * centroid of the boundary face of vof n.
Arguments:
n (not modified) is an Irregular vof.
Returns:
This returns the coordinates of the centroid of the
boundary face of vof n, scaled by it's area.
The grid cell is in a coordinate system with the origin at the
center of the cell, and the grid cell is assumed to be of unit
length in all directions.
Dependencies:
getNormal must be called before this function.
This:
This object is not modified.
Returns the normal to the boundary in vof n.
Arguments:
n (not modified) is a vof.
Returns:
This returns the normal to the boundary line or plane in vof n.
If n is not irregular, then it returns the zero vector.
This:
This object is not modified.
Calculates centroid of an face e.
Arguments:
e (not modified) is the input face.
Returns:
This returns the coordinates of the centroid.
The grid cell is in a coordinate system with the origin at the
center of the cell, and the grid cell is assumed to be of unit
length in all directions.
Dependencies:
getNormal must be called before this function.
This:
This object is not modified.
In 2D, calculates the points describing the polygon formed by vof n.
Arguments:
n (not modified) is an Irregular vof.
Returns:
A Vector of coordinates of the points describing the polygon formed by n.
The grid cell is in a coordinate system with the origin at the
center of the cell, and the grid cell is assumed to be of unit
length in all directions. If the embedded body is smaller than the grid
cell, then polygon will return a small square within a larger square
connected by a line. The area between these two squares will be equal to
the vof's volume fraction.
Dependencies:
getNormal must be called before this function.
This:
This object is not modified.
In 3D, calculates the points describing the polygon formed by vof n.
Arguments:
n (not modified) is an Irregular vof.
Returns:
A Vector of coordinates of the points describing the polygon formed by n.
The grid cell is in a coordinate system with the origin at the
center of the cell, and the grid cell is assumed to be of unit
length in all directions.
Dependencies:
getNormal must be called before this function.
This:
This object is not modified.
In 3D, calculates the points describing the polygon on the boundary of
the computational domain.
Arguments:
n (not modified) is an Irregular vof.
Returns:
If an face of vof n is a boundary face, then it returns the polygon formed
on that face.
Dependencies:
getNormal must be called before this function.
This:
This object is not modified.
Calculates the points describing the polygon when the line nx*x + ny*y = c
intersects a square.
Arguments:
nx (not modified) is the x component of the line's normal.
ny (not modified) is the y component of the line's normal.
c (not modified) is the constant in nx*x + ny*y = c.
Returns:
A Vector of coordinates of the points describing the polygon.
This:
This object is not modified.