Search found 25 matches

by Jimmy Azarnoosh
Thu May 02, 2024 12:33 pm
Forum: SimVascular: Cardiovascular Modeling and Simulation Application
Topic: Compiling Simvascular on EXPANSE (SDSC HPC)
Replies: 1
Views: 1146

Compiling Simvascular on EXPANSE (SDSC HPC)

Hello, We recently compiled svSolver on EXPANSE (SDSC HPC) and successfully ran jobs on it. We are trying to compile Simvascular as well from the source code in the following link: https://github.com/SimVascular/SimVascular All necessary modules that we used to compile svSolver were loaded for Simva...
by Jimmy Azarnoosh
Tue Mar 19, 2024 7:22 am
Forum: SimVascular: Cardiovascular Modeling and Simulation Application
Topic: segmntation error: SplinePolygonSegmentation.set_control_points()
Replies: 1
Views: 177

segmntation error: SplinePolygonSegmentation.set_control_points()

Hello, We are defining a spline polygon using python api based on a set of points created from intersecting a plane with a stl. However, we receive an error when assigning control points. Here's the error: segmntation error: SplinePolygonSegmentation.set_control_points() The 'points' data do not lie...
by Jimmy Azarnoosh
Thu Feb 15, 2024 12:28 pm
Forum: SimVascular: Cardiovascular Modeling and Simulation Application
Topic: Replicating mesh generated using Python script with the one in SV gui
Replies: 8
Views: 697

Re: Replicating mesh generated using Python script with the one in SV gui

Hi Dave, Sorry for the late reply. Yes, we used radios-based meshing that correctly mesh the stenosis. We actually want to get rid of large elements near aortic. I think the only parameter to control element size is global max edge size. When we have stenosis, this value should be smaller to get a r...
by Jimmy Azarnoosh
Tue Feb 06, 2024 3:08 pm
Forum: SimVascular: Cardiovascular Modeling and Simulation Application
Topic: Replicating mesh generated using Python script with the one in SV gui
Replies: 8
Views: 697

Re: Replicating mesh generated using Python script with the one in SV gui

Hi Dave, Just a follow-up question. I used the same mesh setup for the models shown below using a global max edge size of 0.015. RCA (left one) looks okay with a reasonable surface element size. But for LCA (the right one), large elements are visible. I think that's due the the stenosis as I marked ...
by Jimmy Azarnoosh
Tue Feb 06, 2024 10:57 am
Forum: SimVascular: Cardiovascular Modeling and Simulation Application
Topic: Replicating mesh generated using Python script with the one in SV gui
Replies: 8
Views: 697

Re: Replicating mesh generated using Python script with the one in SV gui

Hi Dave, The issue was with radius_meshing_scale. The default value for this is 0.1. To fix this issue, we used our assigned edge size for radius_meshing_scale and got the same mesh that sv GUI generates. Here's the updated options in the code: print("\nSet meshing options ... ") options = sv.meshin...
by Jimmy Azarnoosh
Mon Feb 05, 2024 1:55 pm
Forum: SimVascular: Cardiovascular Modeling and Simulation Application
Topic: Replicating mesh generated using Python script with the one in SV gui
Replies: 8
Views: 697

Re: Replicating mesh generated using Python script with the one in SV gui

Hi Dave, Thanks for your help. We actually got it. options.radius_meshing_centerlines = centerlines didn't work, though. But we added two lines that worked and got the mesh similar to sv gui. options.mmg = False options.radius_meshing_compute_centerlines = True The only issue is that changing the va...
by Jimmy Azarnoosh
Thu Feb 01, 2024 3:27 pm
Forum: SimVascular: Cardiovascular Modeling and Simulation Application
Topic: Replicating mesh generated using Python script with the one in SV gui
Replies: 8
Views: 697

Replicating mesh generated using Python script with the one in SV gui

Hello, We generated a mesh in SV gui as shown below that has a pretty nice element size around the stenosis. fig1.JPG Parameters assigned for this mesh are: fig2.JPG We tend to do the same using Python code. Our current code, attached here, generated the mesh that is not desirable. fig3.JPG What cha...
by Jimmy Azarnoosh
Wed Apr 05, 2023 2:59 pm
Forum: SimVascular: Cardiovascular Modeling and Simulation Application
Topic: Stop simulation based on residual using python/batch script
Replies: 2
Views: 222

Stop simulation based on residual using python/batch script

Hello,

The simulation stops in Simvascular using a specified number of timesteps. I'm doing steady simulations and want to stop the simulation based on a specified residual, i.e. stop calculation at residual less than 1e-6. How can we do this using Python or batch script?

Thanks,
Jimmy