Simulation Guide Example 3: How to write and append displacement.vtp to restart.0.1

Provides a system for patient-specific cardiovascular modeling and simulation.
POST REPLY
User avatar
Paulina Wyszkiewicz
Posts: 11
Joined: Mon Oct 14, 2019 3:45 pm

Simulation Guide Example 3: How to write and append displacement.vtp to restart.0.1

Post by Paulina Wyszkiewicz » Mon May 18, 2020 2:41 pm

Hello,

I am going through Example 3 of the Simulation Guide. I have Created Data Files for Simulation and then when I Run Simulation I get an error.
Screen Shot 2020-05-18 at 3.37.55 PM.png
Screen Shot 2020-05-18 at 3.37.55 PM.png (35.55 KiB) Viewed 407 times
I know it says that before Running Simulation I have to, write the initial displacement to a vtp file "displacement.vtp" to review the solution, and finally appen it to restart.0.1 we just copied from restart.500.0 of Example 2, but I am unsure how to do this. I imported the displacement.vtp file to Paraview and added the WarpByVector1 filter to the file.
Screen Shot 2020-05-18 at 3.56.22 PM.png
Screen Shot 2020-05-18 at 3.56.22 PM.png (560.57 KiB) Viewed 407 times
But I don't know what to do after, do I save the file and replace the original displacement.vtp? How do I append the file to restart.0.1?

NOTE: also when assigning an IC File, it says to choose restart.500.0 but I only have restart.500.1, restart.500.2, restart.500.3, and restart.500.4 so I chose restart.500.4 because it is the last one. Not sure if maybe this is causing a problem?

Thank you,
Paulina

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

Re: Simulation Guide Example 3: How to write and append displacement.vtp to restart.0.1

Post by David Parker » Tue May 19, 2020 12:22 pm

Hi Paulina,

I had a look at the Example 3 of the Simulation Guide instructions. They are a bit muddled, like you I've no idea what

Different from Example 2, the step also solves initial displacement, write the initial displacment to a vtp file displacement.vtp to review the solution, and finally append it to restart.0.1 we just copied from restart.500.0 of Example 2.

could possibly mean. I'll open a GitHub Issue to improve it.

In the previous Example 2 you need to convert the simulation results with the Last Step to restart.x.0 check box selected. This will write a restart.500.0 file to the Simulations/steady_rcr/8-procs_case/steady_rcr-converted-results directory. You will use this file for the Basic Parameters IC File.

Give it a try!

Cheers,
Dave
Attachments
Screen Shot 2020-05-19 at 12.04.51 PM.png
Screen Shot 2020-05-19 at 12.04.51 PM.png (35.62 KiB) Viewed 385 times

User avatar
William Yoon
Posts: 13
Joined: Wed May 12, 2021 12:45 pm

Re: Simulation Guide Example 3: How to write and append displacement.vtp to restart.0.1

Post by William Yoon » Tue Sep 07, 2021 6:18 pm

Hi Dave,

I followed your instruction, and used the resulted file for IC file.
After creating the simulation file, and when I try to run the simulation, I am receiving this error message "non-zero exit code 2."


The process ID for myrank (0) is (3727).


The number of processes is 1.

Solver Input Files listed as below:
------------------------------------
Local Config: solver.inp
Default Input File: Not Setup.

Parameter Values setup as below:
----------------------------------------------
Time Varying Boundary Conditions From File: True
BCT File Type: DAT
Number of BCT Files: 1
BCT Matching Type: Global Node ID
BCT Time Scale Factor: 1.0
Equation of State: Incompressible
Time Step Size: 0.001
Number of Timesteps: 3000
Viscous Control: Viscous
Number of Timesteps between Restarts: 20
Print Average Solution: True
Print Error Indicators: False
Number of Force Surfaces: 1
Surface ID's for Force Calculation: 1
Force Calculation Method: Velocity Based
Apply Wall Deformation: False
Number of Surfaces which Output Pressure and Flow: 0
Density: 1.06
Viscosity: 0.04
Solver Type: svLS
svLS Type: NS
Number of Krylov Vectors per GMRES Sweep: 100
Number of Solves per Left-hand-side Formation: 1
Tolerance on Momentum Equations: 0.01
Tolerance on Continuity Equations: 0.01
Tolerance on svLS NS Solver: 0.01
Maximum Number of Iterations for svLS NS Solver: 10
Maximum Number of Iterations for svLS Momentum Loop: 10
Maximum Number of Iterations for svLS Continuity Loop: 400
Residual Tolerance: 10000.0
Time Integration Rule: Second Order
Time Integration Rho Infinity: 0.5
Flow Advection Form: Convective
Quadrature Rule on Interior: 2
Quadrature Rule on Boundary: 3
Number of Elements Per Block: 255
Number of Coupled Surfaces: 5
Pressure Coupling: Implicit
Number of RCR Surfaces: 5
List of RCR Surfaces: 3 4 5 6 7
RCR Values From File: True
Backflow Stabilization Coefficient: 0.2
Deformable Wall: False
Residual Control: True
Residual Criteria: 0.01
Minimum Required Iterations: 3
Step Construction: 0 1 0 1 0 1 0 1 0 1
Solver Task: Full Simulation

Element block size = 255
Domain size (x,y,z): 5.9976555109 7.0906102657 8.9672415257
Total number of nodes = 133747

Opening bct.dat
Process rank( 0) has 439 bct nodes.

At line 16173 of file /Users/parkerda/software/ktbolt/svSolver/Code/FlowSolvers/ThreeDSolver/svSolver/solver_subroutines.f (unit = 870)
Fortran runtime error: Cannot open file 'QHistRCR.dat': No such file or directory


Any idea how to solve this issue?
Thank you!

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

Re: Simulation Guide Example 3: How to write and append displacement.vtp to restart.0.1

Post by David Parker » Thu Sep 09, 2021 10:21 am

Hi William,

The error message Fortran runtime error: Cannot open file 'QHistRCR.dat': No such file or directory means that the solver can't find the QHistRCR.dat file used to store the time-history of RCR boundary conditions. This file is created when a simulation is run and should be located in the directory where the solver restart files are.

Are you continuing a simulation or starting a new one from time step 0?

Cheers,
Dave

User avatar
William Yoon
Posts: 13
Joined: Wed May 12, 2021 12:45 pm

Re: Simulation Guide Example 3: How to write and append displacement.vtp to restart.0.1

Post by William Yoon » Thu Sep 09, 2021 8:05 pm

Hi Dave,

Thank you for your reply.
I am starting a new one from time step 0

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

Re: Simulation Guide Example 3: How to write and append displacement.vtp to restart.0.1

Post by David Parker » Mon Sep 13, 2021 1:04 pm

Hi William,

I just tried the Example 3 demo and it worked fine.

For the deformable simulation you are creating a new simulation job, correct? Try removing everything in that directory and write out new simulation files.

Cheers,
Dave

POST REPLY