piglot.solver.links package
Submodules
piglot.solver.links.fields module
Module for output fields from Links solver.
- 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.
- 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.
- class Reaction(field: str, group: int = 1)[source]
Bases:
OutputFieldReaction outputs reader.
- check(input_data: InputData) None[source]
Sanity checks on the input file.
This checks if: - we are reading the reactions of a macroscopic analysis; - the file has NODE_GROUPS outputs.
Parameters
- input_dataInputData
Input data for this case.
Raises
- RuntimeError
If not reading a macroscopic analysis file.
- RuntimeError
If reaction output is not requested in the input file.
piglot.solver.links.solver module
Module for Links solver.
- class LinksCase(name: str, fields: Dict[str, OutputField], generator: InputDataGenerator, links: str, mpi_command: str | None = None)[source]
Bases:
InputFileCaseClass for Links cases.
- class LinksSolver(cases: List[Case], parameters: ParameterSet, output_dir: str, tmp_dir: str, verbosity: str, parallel: int = 1)[source]
Bases:
InputFileSolverLinks solver class.
- classmethod get_case_class() Type[InputFileCase][source]
Get the case class to use for this solver.
Returns
- Type[InputFileCase]
InputFileCase class to use for this solver.