Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write a Python script to convert an svSolver .sjb XML file into an svFSIplus solver input XML file #260

Open
1 task done
ktbolt opened this issue Aug 30, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@ktbolt
Copy link
Collaborator

ktbolt commented Aug 30, 2024

Use Case

There are several hundred svSolver jobs in the Vascular Model Repository. It would be useful to have a Python script that could convert an svSolver .sjb XML file into an svFSIplus solver input XML file.

The svSolver .sjb XML file is created by the SimVascular Simulation Tool.

Problem

see above

Solution

see above

Alternatives considered

none

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct and Contributing Guidelines
@ktbolt ktbolt added the enhancement New feature or request label Aug 30, 2024
@ktbolt ktbolt self-assigned this Aug 30, 2024
@ktbolt
Copy link
Collaborator Author

ktbolt commented Sep 4, 2024

I've written the Python script convert-sjb-to-xml.py that converts an svSolver sjb file into an svFSIplus.xml file

convert-sjb-to-xml.py --sjb-file=../demojob.sjb --mesh-directory=mesh-complete --flow-file=lumen_inlet.flow

tested on the Demo and Cylinder simulations.

The --mesh-directory parameter is needed to determine the wall files which are not given in the sjb file.

The --flow-file parameter is needed because the svSolver has an input flow file that is different format than the one used by svFSIplus.

There are lots of hard-coded parameter values in the <LS type="NS"> section that will probably need to be modified for a specific type of simulation.

@lj-cug
Copy link

lj-cug commented Sep 11, 2024

This is very helpful! Right now the test case is small-scaled computation especially using PETSc library. The GPU acceleration library AmgX could also be integrated basing on PETSc. For example, AmgX wrapper tool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants