roxieapi.output.parser module¶
- class roxieapi.output.parser.CoilGeomDfs(conductors: pandas.core.frame.DataFrame, strands: pandas.core.frame.DataFrame)[source]¶
Bases:
object
- conductors: DataFrame¶
- strands: DataFrame¶
- class roxieapi.output.parser.MeshGeomDfs(nodes: pandas.core.frame.DataFrame, elements: pandas.core.frame.DataFrame, boundaries: pandas.core.frame.DataFrame)[source]¶
Bases:
object
- boundaries: DataFrame¶
- elements: DataFrame¶
- nodes: DataFrame¶
- class roxieapi.output.parser.OptData(id: int, name: str)[source]¶
Bases:
object
Data Of an optimization Step
- property blockGeometries3D: Dict[int, BlockGeometry]¶
- property blockTopologies: Dict[int, BlockTopology]¶
Get block topologies
- property brickGeometries3D: Dict[int, Brick3DGeometry]¶
- property coilGeometries: Dict[int, CoilGeometry]¶
- property coilGeometries3D: Dict[int, Coil3DGeometry]¶
- property wedgeGeometries3D: Dict[int, WedgeGeometry]¶
- class roxieapi.output.parser.RoxieOutputParser(xml_file: str)[source]¶
Bases:
object
Roxie output parser class.
Takes all different Roxie outputs, parses them, and provides a structured output of the results.
- find_transstep(opt_step: int, trans_step: int) TransStepData | None [source]¶
- get_3d_plot(plot_nr: int = 1) Plot3D | None [source]¶
Return the 3D plot with number i :param plon_nr: The plot number, defaults to 1 :return: The Plot3D definition, or None
- get_conductor_forces(opt_step: int = 1, trans_step: int = 1) DataFrame | None [source]¶
Return Conductor forces for given Step, or None if not present
- Parameters:
opt_step – The Optimization step, defaults to 1
trans_step – Transient step, defaults to 1
- Returns:
The Conductor forces as Dataframe
- get_crosssection_plot(plot_nr: int = 1) Plot2D | None [source]¶
Return the Crossection 2D plot with number i
- Parameters:
plot_nr – The plot_number, defaults to 1
- Returns:
The Plot2D object, or None
- get_harmonic_coil(coil_nr: int = 1, opt_step: int = 1, trans_step: int = 1) HarmonicCoil | None [source]¶
Return the harmonic coil for given step and coil id, or None if not present
- Parameters:
coil_nr – Harmonic Coil Nr, defaults to 1
opt_step – The Optimization Step Nr, defaults to 1
trans_step – The Transient Step Nr, defaults to 1
- Returns:
The Harmonic coil, or None