piglot

Examples

  • Curve Fitting
  • Response Design
  • Analytical Objectives
  • Post-processing results

Advanced Options

  • Solver Options

Input file templates

  • Input File Options
  • Optimiser options
  • Solver options

Reference

  • API
    • piglot.bin
    • piglot.objective
    • piglot.objectives
    • piglot.optimiser
    • piglot.optimisers
    • piglot.parameter
    • piglot.solver
      • piglot.solver.read_solver
      • piglot.solver.curve
      • piglot.solver.input_file_solver
      • piglot.solver.links
        • piglot.solver.links.fields
        • piglot.solver.links.solver
      • piglot.solver.multi_case_solver
      • piglot.solver.script_solver
      • piglot.solver.solver
    • piglot.utils
  • Integration with solvers
  • Papers
piglot
  • piglot
  • piglot.solver
  • piglot.solver.links
  • piglot.solver.links.fields
  • piglot.solver.links.fields.OutFile
  • View page source

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: OutputField

Links .out file reader.

Methods

check

Sanity checks on the input file.

get

Get a parameter from the .out file.

read

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.

get(input_data: InputData) → OutputResult[source]

Get a parameter from the .out file.

Parameters

input_dataInputData

Input data for this case.

Returns

DataFrame

DataFrame with the requested fields.

classmethod read(config: Dict[str, Any]) → OutFile[source]

Read the output field from the configuration dictionary.

Parameters

configDict[str, Any]

Configuration dictionary.

Returns

Reaction

Output field to use for this problem.

Previous Next

© Copyright 2025, CM2S.

Built with Sphinx using a theme provided by Read the Docs.