KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
Namespaces | Variables
angle_finder.py File Reference

Namespaces

 angle_finder
 

Variables

 angle_finder.Mailfile = sys.argv[1]
 
 angle_finder.in_file = open(Mailfile, 'r')
 
int angle_finder.number_of_sectors = 12
 
float angle_finder.span = 360.0 / number_of_sectors
 
list angle_finder.accumulation = [0] * number_of_sectors
 
list angle_finder.fraction = [0] * number_of_sectors
 
list angle_finder.fraction_exp_300 = [0.0, 0.005645342312008972, 0.030788274905921897, 0.2692645408331682, 0.3890479963028982, 0.19824427279329238, 0.06181699346405223, 0.006438106555753553, 0.0002079619726678139, 0.0, 0.0, 0.0]
 
list angle_finder.fraction_exp_500 = [0.0, 0.00490797546012256, 0.009815950920245342, 0.04539877300613493, 0.40981595092024536, 0.44417177914110423, 0.08036809815950907, 0.00490797546012256, 0.0, 0.0, 0.0, 0.0]
 
list angle_finder.fraction_exp_650 = [0.0, 0.0, 0.006341436575547199, 0.047897039000100894, 0.47890931765871014, 0.40405553364939345, 0.015909436868987936, 0.0, 0.0, 0.0, 0.0, 0.0]
 
int angle_finder.total_accumulation = 0
 
 angle_finder.numbers = line.split()
 
 angle_finder.x_coor = float(numbers[1])
 
 angle_finder.y_coor = float(numbers[2])
 
 angle_finder.angle_in_radians = math.atan2(y_coor,x_coor)
 
int angle_finder.angle_in_degrees = angle_in_radians * 180 / math.pi
 
 angle_finder.final_sector = sector
 
 angle_finder.x_range = range(0,number_of_sectors*30,30)
 
 angle_finder.label