Mordicus.Modules.Phimeca.IO.OTSolutionReader module

class Mordicus.Modules.Phimeca.IO.OTSolutionReader.OTSolutionReader(outputSample)[source]

Bases: SolutionReaderBase

Solution reader for OpenTURNS fields

outputSample

Snapshot

Type

openturns.ProcessSample

ReadSnapshotComponent(fieldName, time, primality)[source]

Reads a snapshots from the solutions of name “fieldName”, at time “time” and of primality “primality”, from the HF computation

Parameters
  • fieldName (str) – name of the solution from which the snapshot is read

  • time (float) – time at which the snapshot is read

  • primality (bool) – primality of the solution from which the snapshot is read

Returns

of size (numberOfDofs,)

Return type

np.ndarray

ReadTimeSequenceFromSolutionFile()[source]

Reads the time sequence from the solution file of the HF computation (may be different from the ones defined in the input data file if the solver chose to solve at additional time steps)

Returns

of size (numberOfSnapshots,)

Return type

np.ndarray