DataStream
- class pvade.DataStream.DataStream(domain, flow, elasticity, params)
Input/Output and file writing class
This class manages the generation and updating of the saved xdmf files from each run along with command line outputs and log files.
- comm
An MPI communicator used by all PVade objects
- Type:
MPI Communicator
- ndim
The number of dimensions in the problem
- Type:
int
- num_procs
The total number of processors being used to solve the problem
- Type:
int
- rank
A unique ID for each process in the range [0, 1, …, num_procs-1]
- Type:
int
- results_filename_fluid
The full path to the directory in which all saved files will be written.
- Type:
str
Initialize the DataStream object
This initializes an object that manages the I/O for all of PVade.
- Parameters:
domain (
pvade.geometry.MeshManager.Domain) – A Domain objectflow (
pvade.fluid.FlowManager.Flow) – A Flow objectparams (
pvade.Parameters.SimParams) – A SimParams object
- save_XDMF_files(fsi_object, domain, tt)
Write additional timestep to XDMF file
This function appends the state of the flow at time tt to an existing XDMF file.
- Parameters:
flow (
pvade.fluid.FlowManager.Flow) – A Flow objecttt (float) – The time at which the current solution exists