piglot.solver.links.fields.OutFile
- class OutFile(field: str | int, i_elem: int | None = None, i_gauss: int | None = None, x_field: str = 'LoadFactor')[source]
Bases:
OutputFieldLinks .out file reader.
Methods
Sanity checks on the input file.
Get a parameter from the .out file.
Read the output field from the configuration dictionary.
- check(input_data: InputData) None[source]
Sanity checks on the input file.
This checks for: - homogenised outputs only from microscopic simulations; - for GP outputs, ensure the input file lists the element and GP number requested; - whether the .out file is in single or double precision.
Parameters
- input_dataInputData
Input data for this case.
Raises
- RuntimeError
If requesting homogenised outputs from macroscopic analyses.
- RuntimeError
If GP outputs have not been specified in the input file.
- RuntimeError
If the requested element and GP has not been specified in the input file.