GlassBR
Loading...
Searching...
No Matches
python.InputParameters.InputParameters Class Reference

Structure for holding the input values and derived values. More...

Public Member Functions

 __init__ (self, filename)
 Initializes input object by reading inputs, calculating derived values, and checking physical constraints and software constraints on the input.
 get_input (self, filename)
 Reads input from a file with the given file name.
 derived_values (self)
 Calculates values that can be immediately derived from the inputs.
 input_constraints (self)
 Verifies that input values satisfy the physical constraints and software constraints.

Public Attributes

 a = float(infile.readline())
 b = float(infile.readline())
 w = float(infile.readline())
 P_btol = float(infile.readline())
 TNT = float(infile.readline())
str g = infile.readline().rstrip()
 t = float(infile.readline())
 SD_x = float(infile.readline())
 SD_y = float(infile.readline())
 SD_z = float(infile.readline())
float h = 1.0 / 1000.0 * (2.16 if self.t == 2.5 else 2.59 if self.t == 2.7 else 2.92 if self.t == 3.0 else 3.78 if self.t == 4.0 else 4.57 if self.t == 5.0 else 5.56 if self.t == 6.0 else 7.42 if self.t == 8.0 else 9.02 if self.t == 10.0 else 11.91 if self.t == 12.0 else 15.09 if self.t == 16.0 else 18.26 if self.t == 19.0 else 21.44)
tuple LDF = (3.0 / 60.0) ** (7.0 / 16.0)
int GTF = 1
 SD = math.sqrt(self.SD_x ** 2.0 + self.SD_y ** 2.0 + self.SD_z ** 2.0)
 AR = self.a / self.b
 w_TNT = self.w * self.TNT

Detailed Description

Structure for holding the input values and derived values.

Constructor & Destructor Documentation

◆ __init__()

python.InputParameters.InputParameters.__init__ ( self,
filename )

Initializes input object by reading inputs, calculating derived values, and checking physical constraints and software constraints on the input.

Parameters
filenamename of the input file

Member Function Documentation

◆ get_input()

python.InputParameters.InputParameters.get_input ( self,
filename )

Reads input from a file with the given file name.

Parameters
filenamename of the input file

The documentation for this class was generated from the following file: