Adding outputs to visualize in Paraview, CEP simulations

Provides a system for patient-specific cardiovascular modeling and simulation.
POST REPLY
User avatar
Alessia Di Marco
Posts: 1
Joined: Wed Apr 10, 2024 1:03 am

Adding outputs to visualize in Paraview, CEP simulations

Post by Alessia Di Marco » Fri Jun 14, 2024 3:57 am

Hi everyone,
I'm trying to add a new output to visualize in Paraview on a CEP simulation. I noticed that for CEP simulations there is only one default output, which is the Action potential, but I would like to add another variable to visualize in paraview at the same time. I added the equations to calculate this new variable in the CepMod file and I also would like to add this variable in the input file as an output, but I don't know how to do that. I've tried to do this as shown below but when I go to Paraview, nothing is visible, not even the Action potential.

<Output type="Spatial" >
<Action_potential> true </Action_potential>
</Output>

<Output type="Alias" >
<Tension> true </Tension>
</Output>

Could someone explain to me which is the best way to add a variable as an output?
Best,
Alessia

User avatar
Matteo Salvador
Posts: 1
Joined: Wed Feb 01, 2023 3:54 pm

Re: Adding outputs to visualize in Paraview, CEP simulations

Post by Matteo Salvador » Wed Jun 19, 2024 4:38 am

Dear Alessia,

you can find the full list of all the currently supported outputs for Paraview in the header file called set_output_props.h within svFSIplus (also attached to this message).
If the variable you want to visualize for your CEP simulation is not listed here, this has to be manually added in the code first, following a similar path with respect to the other available variables.
Then, it can be used/enabled in the XML input file.

In principle, if you want multiple outputs of a certain type you can just specify them within the same output type.
For instance, for an FSI simulation, you can do:

<Output type="Spatial" >
<Displacement> true </Displacement>
<Velocity> true </Velocity>
<Jacobian> true </Jacobian>
<Stress> true </Stress>
<Strain> true </Strain>
</Output>

I guess that the variable you need, which has to be visualized in Paraview, should go under the type "Spatial" as well.

Best,

Matteo
Attachments
set_output_props.h
(5.56 KiB) Not downloaded yet

POST REPLY