Enum Class TransientPipe.BoundaryCondition
java.lang.Object
java.lang.Enum<TransientPipe.BoundaryCondition>
neqsim.process.equipment.pipeline.twophasepipe.TransientPipe.BoundaryCondition
- All Implemented Interfaces:
Serializable, Comparable<TransientPipe.BoundaryCondition>, Constable
- Enclosing class:
TransientPipe
Boundary condition types for inlet and outlet.
Specifies how the boundary conditions are handled at the pipe inlet and outlet.
CONSTANT_PRESSURE- Fixed pressure (typical for outlet)CONSTANT_FLOW- Fixed mass flow rate (typical for inlet)CONSTANT_VELOCITY- Fixed velocityCLOSED- No flow (wall boundary)TRANSIENT_PRESSURE- Time-varying pressureTRANSIENT_FLOW- Time-varying flow rate
pipe.setInletBoundaryCondition(BoundaryCondition.CONSTANT_FLOW);
pipe.setOutletBoundaryCondition(BoundaryCondition.CONSTANT_PRESSURE);
pipe.setInletMassFlow(5.0); // kg/s
pipe.setOutletPressure(30.0); // bara
- Version:
- 1.0
- Author:
- Even Solbraa
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionClosed boundary (no flow).Constant mass flow boundary.Constant pressure boundary.Constant velocity boundary.Time-varying flow.Time-varying pressure. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static TransientPipe.BoundaryCondition[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CONSTANT_PRESSURE
Constant pressure boundary. -
CONSTANT_FLOW
Constant mass flow boundary. -
CONSTANT_VELOCITY
Constant velocity boundary. -
CLOSED
Closed boundary (no flow). -
TRANSIENT_PRESSURE
Time-varying pressure. -
TRANSIENT_FLOW
Time-varying flow.
-
-
Constructor Details
-
BoundaryCondition
private BoundaryCondition()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-