Skip to content

Add optional unit conversion factor when coupling to svZeroD #464

@aabrown100-git

Description

@aabrown100-git

Problem

When using an svZeroD coupled boundary condition, pressure and flow rate are passed between svMultiPhysics and svZeroDSolver without any conversion. This forces the units to be the same in each input file. This is somewhat limiting, since units that are natural for the 0D domain (e.g. mmHg) are not typical for the 3D domain (e.g. Pa).

Solution

Allow the user to specify pressure and flowrate conversion factors in the xml input file. For example,

<svZeroDSolver_interface> 
     <Coupling_type> semi-implicit </Coupling_type>
     <Configuration_file> svzerod_3Dcoupling.json </Configuration_file>
     <Shared_library> ../../../../svZeroDSolver/build/src/interface/libsvzero_interface.dylib </Shared_library>  
     <Initial_flows> 0.0 </Initial_flows>
     <Initial_pressures> 0.0 </Initial_pressures>
     <Pressure_conversion_factor> 0.00750062 </Pressure_conversion_factor> <!-- Pa to mmHg -->
     <Flowrate_conversion_factor> 1e6 </Flowrate_conversion_factor> <!-- m^3 to mL -->
   </svZeroDSolver_interface> 

Additional context

This feature is available for genBC, although in genBC the conversion is performed on the 0D side of the communication.

Code of Conduct

  • I agree to follow this project's Code of Conduct and Contributing Guidelines

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions