genericROM.IO.XDMFWriter

WriteProblemDataSolutions(mesh, problemData, solutionNameRef, outputName)[source]

Functional API

Writes on disk the solutions defined in a ProblemData, satisfying the corresponding format

Parameters
  • mesh (BasicToolsUnstructuredMesh) – high-dimensional mesh

  • problemData (ProblemData) – ProblemData containing the solutions to be written

  • solutionNameRef (str) – name of the solution whose timeSequence is chosen for the output

  • outputName (str) – name of the file on disk where the solution is written

WriteReducedOrderBases(mesh, problemData, reducedOrderBases, outputName)[source]

Functional API

Writes reducedOrderBases on disk satisfying the corresponding 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)

  • outputName (str) – name of the file on disk where the solution is written

WriteSolution(mesh, solution, outputName)[source]

Functional API

Writes a solution on disk satisfying the corresponding format

Parameters
  • mesh (BasicToolsUnstructuredMesh) – high-dimensional mesh

  • solution (Solution) – solution containing reducedCoordinates

  • outputName (str) – name of the file on disk where the solution is written

class XDMFWriter(outputName)[source]

Bases: object

Class containing the PXDMF writer

WriteProblemDataSolutions(mesh, problemData, solutionNameRef)[source]

Writes on disk the solutions defined in a ProblemData, satisfying the corresponding format

Parameters
  • mesh (BasicToolsUnstructuredMesh) – high-dimensional mesh

  • problemData (ProblemData) – ProblemData containing the solutions to be written

  • solutionNameRef (str) – name of the solution whose timeSequence is chosen for the output

WriteReducedOrderBases(mesh, problemData, reducedOrderBases)[source]

Writes reducedOrderBases on disk satisfying the corresponding 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)

WriteSolution(mesh, solution)[source]

Writes a solution on disk satisfying the corresponding format

Parameters