Using the mesh created elsewhere
- Alexandre Costa
- Posts: 32
- Joined: Tue May 03, 2022 10:34 am
Using the mesh created elsewhere
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) Thanks for the reply
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) Thanks for the reply
- David Parker
- Posts: 1753
- Joined: Tue Aug 23, 2005 2:43 pm
Re: Using the mesh created elsewhere
Hello,
There is currently no mesh import capability in SV.
See viewtopicPhpbb.php?f=188&t=13273&p=38121&start=0&view=.
Cheers,
Dave
There is currently no mesh import capability in SV.
See viewtopicPhpbb.php?f=188&t=13273&p=38121&start=0&view=.
Cheers,
Dave
- David Parker
- Posts: 1753
- Joined: Tue Aug 23, 2005 2:43 pm
Re: Using the mesh created elsewhere
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
creates the following files
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
For example, running the script with a file named coarse.vtu
Code: Select all
$ python create-sv-mesh.py coarse.vtu
Code: Select all
coarse-mesh.msh coarse-mesh.vtu coarse-model.vtp
coarse-mesh.vtp coarse-model.mdl coarse.vtu*
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
- Alexandre Costa
- Posts: 32
- Joined: Tue May 03, 2022 10:34 am
Re: Using the mesh created elsewhere
Hi Dave,
Thanks for the update. I am going to give a try : import mesh in format .msh (ansys fluent) into SIMVASCULAR
Thanks for the update. I am going to give a try : import mesh in format .msh (ansys fluent) into SIMVASCULAR
- Alexandre Costa
- Posts: 32
- Joined: Tue May 03, 2022 10:34 am
Re: Using the mesh created elsewhere
Hi Dave,
Would be possible to use the script to a .vtm file ?
Thanks
Would be possible to use the script to a .vtm file ?
Thanks
- David Parker
- Posts: 1753
- Joined: Tue Aug 23, 2005 2:43 pm
Re: Using the mesh created elsewhere
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
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
- Alexandre Costa
- Posts: 32
- Joined: Tue May 03, 2022 10:34 am
Re: Using the mesh created elsewhere
Hi Dave
.vtm is the format Paraview allow me to save an opened(inside paraview) .msh (ansys fluent mesh file)
.vtm is the format Paraview allow me to save an opened(inside paraview) .msh (ansys fluent mesh file)
- David Parker
- Posts: 1753
- Joined: Tue Aug 23, 2005 2:43 pm
Re: Using the mesh created elsewhere
Just save to a .vtu file and then add the node and element IDs if needed.
Cheers,
Dave
Cheers,
Dave
- Alexandre Costa
- Posts: 32
- Joined: Tue May 03, 2022 10:34 am
Re: Using the mesh created elsewhere
Hi Dave,
I dont see an .vtu option :
I dont see an .vtu option :
- Attachments
-
- Screenshot from 2022-08-29 17-37-07.png (166.32 KiB) Viewed 1629 times
- David Parker
- Posts: 1753
- Joined: Tue Aug 23, 2005 2:43 pm
Re: Using the mesh created elsewhere
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
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