genericROM.IO.PXDMFWriter
- class PXDMFWriter(outputName)[source]
Bases:
objectClass containing the PXDMF writer
- outputName
name of the file to be written on disk
- Type
str
- Write(mesh, reducedCoordinates, reducedOrderBasis)[source]
Writes a solution on disk in the PXDMF format.
- Parameters
mesh (BasicToolsUnstructuredMesh) – high-dimensional mesh
reducedCoordinates (dict) – dictionary with time indices as keys and a np.ndarray of size (numberOfModes) containing the coefficients of the reduced solution
reducedOrderBasis (np.ndarray) – of size (numberOfModes, numberOfDOFs)
- WriteCompressedSolution(mesh, reducedCoordinates, reducedOrderBasis, outputName)[source]
Functional API
Writes a solution on disk from the compressed snapshots
- Parameters
mesh (BasicToolsUnstructuredMesh) – high-dimensional mesh
reducedCoordinates (dict) – dictionary with time indices as keys and a np.ndarray of size (numberOfModes,) containing the coefficients of the reduced solution
reducedOrderBasis (np.ndarray) – of size (numberOfModes, numberOfDOFs)
outputName (str) – name of the file on disk where the solution is written
- WriteReducedOrderBasis(mesh, reducedOrderBasis, outputName)[source]
Functional API
Writes a reduced order basis on disk
- Parameters
mesh (BasicToolsUnstructuredMesh) – high-dimensional mesh
reducedOrderBasis (np.ndarray) – of size (numberOfModes, numberOfDOFs)
outputName (str) – name of the file on disk where the solution is written
- WriteSolution(mesh, solution, reducedOrderBasis)[source]
Functional API
Writes a solution on disk
- Parameters
mesh (BasicToolsUnstructuredMesh) – high-dimensional mesh
solution (Solution) – solution containing reducedCoordinates
reducedOrderBasis (np.ndarray) – of size (numberOfModes, numberOfDOFs)