genericROM.IO.ZsetInputReader
- ConstructConstitutiveLawsList(inputFileName)[source]
Constructs the constitutive laws defined in the Z-set input file “inputFileName” (.inp)
- Parameters
inputFileName (str) – Z-set input file
- Returns
list of constitutive laws, each one having one of the formats defined in Containers.ConstitutiveLaws
- Return type
list
- ConstructInitialCondition(inputFileName)[source]
Functional API
Constructs the initial condition defined in the Z-set input file “inputFileName” (.inp)
- Parameters
inputFileName (str) – Z-set input file
- Returns
object defining an initial condition
- Return type
- ConstructLoadingsList(inputFileName, loadingTags=None)[source]
Constructs the loadings defined in the Z-set input file “inputFileName” (.inp)
- Parameters
inputFileName (str) – Z-set input file
- Returns
list of loadings, each one having one of the formats defined in Containers.Loadings
- Return type
list
- ConstructOneMechanicalConstitutiveLaw(folder, materialFileName, behavior, density=None, set='ALLELEMENT')[source]
Constructs one Z-mat constitutive law
- Parameters
folder (str) – folder containing the Z-mat file
materialFileName (str, max 8 characters) – name of the file containing the definition on the constitutive law in Z-set
behavior (str) – name of the Z-mat behavior, “gen_evp” or “linear_elastic”
density (float, optional) – density of the material (must be specified if the problem features centrifugal effect, for instance)
set (str, optional) – element set on which the constitutive law is defined
- Return type
ZmatConstitutiveLaw or MecaUniformLinearElasticity
- ReadInputTimeSequence(inputFileName)[source]
Functional API
Reads the time sequence from the Z-set input file “inputFileName” (.inp) (may be different from the ones defined in the solution file if the solver chose to solve at additional time steps)
- Parameters
inputFileName (str) – Z-set input file
- Returns
of size (numberOfSnapshots,)
- Return type
np.ndarray
- UpdateFileName(fileName)[source]
Modifies the filename in parallel with distributed memory settings
- Parameters
fileName (str) – filename to be updated
- Returns
updated filename
- Return type
str
- class ZsetInputReader(inputFileName=None, string=None, rootpath=None)[source]
Bases:
Mordicus.IO.InputReaderBase.InputReaderBaseClass containing a reader for Z-set input file
- inputFileName
name of the Z-set input file (.inp)
- Type
str, must be defined if string is None
- string
content of a Z-set input file
- Type
str, must be defined if inputFileName is None
- inputFile
list containing the input file as parsed by BasicTools.IO.ZebulonIO
- Type
list
- rootpath
list containing the input file as parsed by BasicTools.IO.ZebulonIO
- Type
str, must be defined if string is not None
- problemType
Z-set type of problem : “mechanical” or “thermal_transient”
- Type
str
- ConstructConstitutiveLawsList()[source]
Constructs the constitutive laws
- Returns
list of constitutive laws, each one having one of the formats defined in Containers.ConstitutiveLaws
- Return type
list
- ConstructInitialCondition()[source]
Constructs the initial condition
- Returns
object defining an initial condition
- Return type
- ConstructLoadingsList(loadingTags=None)[source]
Constructs the loadings, possibily a subset of loading using the parameter loadingTags
- Parameters
loadingTags (list, optional) – list of str, among knownLoadingTags
- Returns
list of loadings, each one having one of the formats defined in Containers.Loadings
- Return type
list
- ConstructOneConstitutiveLaw(materialFileName, set)[source]
Constructs one constitutive law
- Parameters
materialFileName (str, max 8 characters) – name of the file containing the definition on the constitutive law in Z-set
set (str) – element set on which the constitutive law is defined
- Returns
the constructed loading in one of the formats defined in Containers.ConstitutiveLaws
- Return type
ConstitutiveLawBase
- ConstructOneLoading(key, load, tables, inputTimeSequence)[source]
Constructs one loading
- Parameters
key (str) – Zset keyword for the loading
load (list) – list containing the boundary condition data as defined in BasicTools.IO.ZebulonIO
tables (dict) – list containing the tables data as defined in BasicTools.IO.ZebulonIO
inputTimeSequence (list or 1D np.ndarray) – time sequence defined in the Z-set input file
- Returns
the constructed loading in one of the formats defined in Containers.Loadings
- Return type
LoadingBase