Page 1 of 1

Using the mesh created elsewhere

Posted: Thu Aug 18, 2022 6:19 am
by c0274
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 923 times
Thanks for the reply

Re: Using the mesh created elsewhere

Posted: Thu Aug 18, 2022 2:30 pm
by davep
Hello,

There is currently no mesh import capability in SV.

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

Cheers,
Dave

Re: Using the mesh created elsewhere

Posted: Thu Aug 18, 2022 8:26 pm
by davep
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

Re: Using the mesh created elsewhere

Posted: Fri Aug 19, 2022 5:20 am
by c0274
Hi Dave,
Thanks for the update. I am going to give a try : import mesh in format .msh (ansys fluent) into SIMVASCULAR

Re: Using the mesh created elsewhere

Posted: Mon Aug 22, 2022 1:06 pm
by c0274
Hi Dave,
Would be possible to use the script to a .vtm file ?
Thanks

Re: Using the mesh created elsewhere

Posted: Mon Aug 22, 2022 1:31 pm
by davep
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

Re: Using the mesh created elsewhere

Posted: Wed Aug 24, 2022 1:13 pm
by c0274
Hi Dave
.vtm is the format Paraview allow me to save an opened(inside paraview) .msh (ansys fluent mesh file)

Re: Using the mesh created elsewhere

Posted: Thu Aug 25, 2022 2:49 pm
by davep
Just save to a .vtu file and then add the node and element IDs if needed.

Cheers,
Dave

Re: Using the mesh created elsewhere

Posted: Mon Aug 29, 2022 1:39 pm
by c0274
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 790 times

Re: Using the mesh created elsewhere

Posted: Tue Aug 30, 2022 12:03 pm
by davep
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