genericROM.IO.ZsetSolutionWriter module
- WriteZsetSolution(mesh, meshFileName, solutionFileName, collectionProblemData, problemData, solutionNameRef=None, timeSequence=None, outputReducedOrderBasis=False)[source]
Writes a solution from reducedCoordinates or a reducedOrderBases on disk satisfying the Z-set format
- Parameters:
mesh (MuscatMesh) – high-dimensional mesh
meshFileName (str) – name of the meshfile already available on disk
solutionFileName (str) – name of the file on disk where the solution is written
collectionProblemData (CollectionProblemData) – collectionProblemData containing the reducedOrderBases to write
problemData (ProblemData) – problemData containing the reducedCoordinates to write
solutionNameRef (str, option) – name of the solution used to define the timeSequence
timeSequence (list or 1D np.ndarray, optional) – not used for writing reducedOrderBases, if None for writing a solution, the time sequences defined in reducedCoordinates is used (in that case, solutionNameRef must me defined)
outputReducedOrderBasis (bool, optional) – True to write reducedOrderBases, False to write solutions
Notes
In the current implementations, all reduced order basis are written in a Zset-like format with the rank of the modes as the “time”: the fields having less than the max number of modes have their last modes repeated