Muscat.IO.SamcefOutputReader module¶
Samcef output file reader
- ReadFieldFromDataBase(fieldname, field, time=None)[source]¶
Function API for reading a field in a samcef output file
- Parameters:
fieldname (str) – name of the file to be read
field (str) – name of the field to read in the file
time (float, optional) – time at which the data is read, by default None
- Returns:
indices and values of the field to read
- Return type:
np.ndarray, np.ndarray
- class SamcefDataE(*k, **nk)[source]¶
Bases:
SamcefData
- class SamcefDataG(*k, **nk)[source]¶
Bases:
SamcefData
- class SamcefDataN(*k, **nk)[source]¶
Bases:
SamcefData
- class SamcefOuputReader[source]¶
Bases:
object
Samcef output Reader class
- GetAvailableTimes()[source]¶
Returns available times to read
- Returns:
time values available to read
- Return type:
list
- Read()[source]¶
Function that performs the reading of a samcef output file
- Returns:
output unstructured mesh object containing reading result
- Return type:
- ReadField(fieldname=None, time=None, timeIndex=None)[source]¶
Function that performs the reading of a field in a samcef output file
- Parameters:
fieldname (str, optional) – name of the field to read, by default None
time (float, optional) – time at which the data is read, by default None
timeIndex (int, optional) – time index which the data is read, by default None
- Returns:
indices and values of the field to read
- Return type:
np.ndarray, np.ndarray