JaRMoS  1.1
Java Reduced Model Simulations
 All Classes Namespaces Files Functions Variables Enumerator Groups Pages
SystemType.java
Go to the documentation of this file.
1 package rb;
2 
13 public enum SystemType {
18 
23 
28 
33 
38 
46  public static SystemType parse(String s) {
47  for (SystemType type : SystemType.values()) {
48  if (type.toString().equals(s))
49  return type;
50  }
51  return SystemType.NONE;
52  }
53 
60  switch (this) {
61  case NONE:
62  return null;
63  case LINEAR_STEADY:
64  return new RBSystem();
65  case LINEAR_COMPLEX_STEADY:
66  return new ComplexRBSystem();
67  case LINEAR_UNSTEADY:
68  return new TransientRBSystem();
69  case QN_UNSTEADY:
70  return new QNTransientRBSystem();
71  default:
72  return null;
73  }
74  }
75 }
Linear, complex valued time-independent/steady state rb system.
Definition: SystemType.java:37
This class provides the Online stage for the reduced basis method for elliptic steady state problems...
Definition: RBSystem.java:54
RBSystem getNewRBSystem()
Instantiates an RBSystem subclass corresponding to the current type.
Definition: SystemType.java:59
This class provides the Online reduced basis functionality for linear parabolic problems.
LINEAR_STEADY
Linear, time-invariant/steady state rb system.
Definition: SystemType.java:22
LINEAR_UNSTEADY
Linear, time-dependent rb system.
Definition: SystemType.java:27
static SystemType parse(String s)
Parses a string into the corresponding enum.
Definition: SystemType.java:46
RB system class for complex-valued fields.
NONE
No system type.
Definition: SystemType.java:17
This class provides the Online reduced basis functionality for quadratically nonlinear time-dependent...
Enum for known RB system types in JRB.
Definition: SystemType.java:13