public class EdgeProperties
extends java.lang.Object
This class contains properties of an edge. These properties can be maintained by either a Polygon or the Edge itself. All properties are private fields but can be accessed via getters and setters.
Currently, the properties only contain the boundary conditions of edges (faces). The intent is to let the Polygon (element) manage these properties since in Nek the elements have boundary conditions for all their faces. Shared faces can have two fluid, thermal, or nth passive scalar boundary conditions.
Constructor and Description |
---|
EdgeProperties()
The default constructor for properties of an Edge.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
This operation returns a clone of the EdgeProperties using a deep copy.
|
void |
copy(EdgeProperties properties)
This operation copies the contents of a EdgeProperties into the current
object using a deep copy.
|
boolean |
equals(java.lang.Object otherObject)
This operation is used to check equality between this EdgeProperties and
another.
|
BoundaryCondition |
getFluidBoundaryCondition()
Gets the fluid boundary condition for the edge.
|
BoundaryCondition |
getOtherBoundaryCondition(int otherId)
Gets a passive scalar boundary condition from the edge.
|
java.util.ArrayList<BoundaryCondition> |
getOtherBoundaryConditions()
Gets all passive scalar boundary conditions for the edge.
|
BoundaryCondition |
getThermalBoundaryCondition()
Gets the thermal boundary condition for the edge.
|
int |
hashCode()
This operation returns the hash value of the EdgeProperties.
|
boolean |
setFluidBoundaryCondition(BoundaryCondition condition)
Sets the fluid boundary condition for the edge.
|
boolean |
setOtherBoundaryCondition(int otherId,
BoundaryCondition condition)
Sets a passive scalar boundary condition for the edge.
|
boolean |
setThermalBoundaryCondition(BoundaryCondition condition)
Sets the thermal boundary condition for the edge.
|
public EdgeProperties()
The default constructor for properties of an Edge. This initializes every property it can to non-null values.
public boolean setFluidBoundaryCondition(BoundaryCondition condition)
Sets the fluid boundary condition for the edge.
condition
- The new BoundaryCondition.public BoundaryCondition getFluidBoundaryCondition()
Gets the fluid boundary condition for the edge.
public boolean setThermalBoundaryCondition(BoundaryCondition condition)
Sets the thermal boundary condition for the edge.
condition
- The new BoundaryCondition.public BoundaryCondition getThermalBoundaryCondition()
Gets the thermal boundary condition for the edge.
public boolean setOtherBoundaryCondition(int otherId, BoundaryCondition condition)
Sets a passive scalar boundary condition for the edge.
otherId
- The ID or index of the set of passive scalar boundary
conditions.condition
- The new BoundaryCondition.public BoundaryCondition getOtherBoundaryCondition(int otherId)
Gets a passive scalar boundary condition from the edge.
otherId
- The ID or index of the set of passive scalar boundary
conditions.public java.util.ArrayList<BoundaryCondition> getOtherBoundaryConditions()
Gets all passive scalar boundary conditions for the edge.
public int hashCode()
This operation returns the hash value of the EdgeProperties.
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object otherObject)
This operation is used to check equality between this EdgeProperties and another. It returns true if they are equal and false if they are not.
equals
in class java.lang.Object
otherObject
- The other Object that should be compared with this one.public void copy(EdgeProperties properties)
This operation copies the contents of a EdgeProperties into the current object using a deep copy.
properties
- The Object from which the values should be copied.public java.lang.Object clone()
This operation returns a clone of the EdgeProperties using a deep copy.
clone
in class java.lang.Object