Using the mesh created elsewhere

Provides a system for patient-specific cardiovascular modeling and simulation.
POST REPLY
User avatar
Alexandre Costa
Posts: 32
Joined: Tue May 03, 2022 10:34 am

Using the mesh created elsewhere

Post by Alexandre Costa » Thu Aug 18, 2022 6:19 am

Hi All,
Would be possible to start the simulation pipeline using the mesh created elsewhere ?
I am attaching a snapshot (some of the itens are not available to choose)
Screenshot from 2022-08-18 10-13-51.png
Screenshot from 2022-08-18 10-13-51.png (48.81 KiB) Viewed 922 times
Thanks for the reply

User avatar
David Parker
Posts: 1652
Joined: Tue Aug 23, 2005 2:43 pm

Re: Using the mesh created elsewhere

Post by David Parker » Thu Aug 18, 2022 2:30 pm

Hello,

There is currently no mesh import capability in SV.

See viewtopicPhpbb.php?f=188&t=13273&p=38121&start=0&view=.

Cheers,
Dave

User avatar
David Parker
Posts: 1652
Joined: Tue Aug 23, 2005 2:43 pm

Re: Using the mesh created elsewhere

Post by David Parker » Thu Aug 18, 2022 8:26 pm

The script here https://github.com/ktbolt/cardiovascula ... vtu/python takes a mesh .vtu file and creates the SV model and mesh files. The .vtu needs to have GlobalNodeID, ModelRegionID and GlobalElementID data arrays defined.

For example, running the script with a file named coarse.vtu

Code: Select all

$ python create-sv-mesh.py coarse.vtu
creates the following files

Code: Select all

coarse-mesh.msh		coarse-mesh.vtu		coarse-model.vtp
coarse-mesh.vtp		coarse-model.mdl	coarse.vtu*
You then
1) Create an empty SV project, save and quit
2) Copy the coarse-model.vtp and coarse-model.mdl files to the project's Models director
3) Copy the coarse-mesh.msh, coarse-model.vtp and coarse-mesh.vtu to the project's Meshes directory
4) Start SV and open the project, you will see the Model and Mesh tools with the data from the files
5) Set the model faces to type cap as needed (by default all faces are of type wall)

Cheers,
Dave

User avatar
Alexandre Costa
Posts: 32
Joined: Tue May 03, 2022 10:34 am

Re: Using the mesh created elsewhere

Post by Alexandre Costa » Fri Aug 19, 2022 5:20 am

Hi Dave,
Thanks for the update. I am going to give a try : import mesh in format .msh (ansys fluent) into SIMVASCULAR

User avatar
Alexandre Costa
Posts: 32
Joined: Tue May 03, 2022 10:34 am

Re: Using the mesh created elsewhere

Post by Alexandre Costa » Mon Aug 22, 2022 1:06 pm

Hi Dave,
Would be possible to use the script to a .vtm file ?
Thanks

User avatar
David Parker
Posts: 1652
Joined: Tue Aug 23, 2005 2:43 pm

Re: Using the mesh created elsewhere

Post by David Parker » Mon Aug 22, 2022 1:31 pm

Hi Alexandre,

I don't know what a .vtm file is. If that is an ACSII format for a mesh then you can create a VTU mesh from that and use it to create SV mesh and model files.

Cheers,
Dave

User avatar
Alexandre Costa
Posts: 32
Joined: Tue May 03, 2022 10:34 am

Re: Using the mesh created elsewhere

Post by Alexandre Costa » Wed Aug 24, 2022 1:13 pm

Hi Dave
.vtm is the format Paraview allow me to save an opened(inside paraview) .msh (ansys fluent mesh file)

User avatar
David Parker
Posts: 1652
Joined: Tue Aug 23, 2005 2:43 pm

Re: Using the mesh created elsewhere

Post by David Parker » Thu Aug 25, 2022 2:49 pm

Just save to a .vtu file and then add the node and element IDs if needed.

Cheers,
Dave

User avatar
Alexandre Costa
Posts: 32
Joined: Tue May 03, 2022 10:34 am

Re: Using the mesh created elsewhere

Post by Alexandre Costa » Mon Aug 29, 2022 1:39 pm

Hi Dave,
I dont see an .vtu option :
Screenshot from 2022-08-29 17-32-41.png
Screenshot from 2022-08-29 17-32-41.png (204.79 KiB) Viewed 789 times
Attachments
Screenshot from 2022-08-29 17-37-07.png
Screenshot from 2022-08-29 17-37-07.png (166.32 KiB) Viewed 789 times

User avatar
David Parker
Posts: 1652
Joined: Tue Aug 23, 2005 2:43 pm

Re: Using the mesh created elsewhere

Post by David Parker » Tue Aug 30, 2022 12:03 pm

Hi Alexandre,

I don't have any experience with MultiBlock data sets. You will need to use some sort of Paraview extract filter to extract the unstructured grid data and write it.

Cheers,
Dave

POST REPLY