error in the simulation

Provides a system for patient-specific cardiovascular modeling and simulation.
User avatar
simon Molina
Posts: 8
Joined: Mon Mar 11, 2024 1:11 am

error in the simulation

Post by simon Molina » Tue Apr 09, 2024 6:28 am

Hello,
I'm running a simulation but it crashes at some point and I can't figure out why...
From the histor.DAT file (attached) it seems going well but it stops and the error console says that there is a mismatch between the tag specified in the request and the tag present in the reparse point.

I'm using the latest SimVascular version and solver version on Windows.

Best regards,
Simon Molina
Attachments
histor.txt
(297.53 KiB) Downloaded 47 times

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

Re: error in the simulation

Post by David Parker » Tue Apr 09, 2024 1:27 pm

Hi Simon,

The mismatch between the tag specified in the request and the tag present in the reparse point. error is from the Windows OS, encounters a problem when writing a file, disk is full or corrupt maybe.

Cheers,
Dave

User avatar
simon Molina
Posts: 8
Joined: Mon Mar 11, 2024 1:11 am

Re: error in the simulation

Post by simon Molina » Wed Apr 10, 2024 6:10 am

Hello David,
thanks for your quick reply.
I will look into it.

Best regards,
Simon

User avatar
simon Molina
Posts: 8
Joined: Mon Mar 11, 2024 1:11 am

Re: error in the simulation

Post by simon Molina » Tue Apr 16, 2024 12:57 am

Hello,
I have emptied my disk and I don't have the same problem anymore.
However, I still have a problem :(
As you can see on the histor.DAT file, I have the NaN that appear at some point without further explanation and it doesn't even stop the simulation from running so I don't have an error message to work on...

Best regards,
Simon Molina
Attachments
why.PNG
why.PNG (56.57 KiB) Viewed 1721 times

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

Re: error in the simulation

Post by David Parker » Tue Apr 16, 2024 1:54 pm

Hi Simon,

Is your simulation starting at time step 1? Make sure that there are no simulation files left over from your previous simulations, otherwise the solver will restart the simulation from those files.

Cheers,
Dave

User avatar
simon Molina
Posts: 8
Joined: Mon Mar 11, 2024 1:11 am

Re: error in the simulation

Post by simon Molina » Fri Apr 19, 2024 12:49 am

Hello,
yes I checked and deleted the files from the previous simulation so it starts at time step 1.
I refined the mesh so the simulation ran a bit longer but it still crashes suddenly (at 49%).
Should I continue to work on the mesh? I already have more than 1 million elements.

BR,
Simon

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

Re: error in the simulation

Post by David Parker » Fri Apr 19, 2024 3:25 pm

Hi Simon,

It's not clear what is going on here, the nonlinear residuals look good and then you suddenly get a NaN.

Upload you SV Simulations directory someplace I can download it and I'll have a look.

Cheers,
Dave

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

Re: error in the simulation

Post by David Parker » Fri Apr 19, 2024 3:55 pm

Hi Simon,

It's not clear what is going on here, the nonlinear residuals look good and then you suddenly get a NaN, doesn't seem to be a time step problem. What do your results look like before the failure?

Upload you SV Simulations directory someplace I can download it and I'll have a look.

Cheers,
Dave

User avatar
simon Molina
Posts: 8
Joined: Mon Mar 11, 2024 1:11 am

Re: error in the simulation

Post by simon Molina » Mon Apr 22, 2024 7:31 am

Hi,
the results look consistent in terms of velocity magnitude and direction, pressure.
Here's the google drive link of the whole project (I hope it works):

https://drive.google.com/file/d/1iqg6T3 ... drive_link

Best regards,
Simon

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

Re: error in the simulation

Post by David Parker » Tue Apr 23, 2024 1:53 pm

Hi Simon,

I looked at your simulation results, everything looks ok, no NaNs

Code: Select all

$ tail histor.dat 
   559 2.558E+05 3.826E-01  (   7)   1.298E-02   1.060E-03  < 30364-13|  12> [   0 -   0]
   559 2.559E+05 2.098E-02  (  -5)   1.458E-03   5.822E-04  < 28316-14|  14> [   0 -   0]
   559 2.560E+05 3.690E-03  ( -12)   5.683E-04   3.003E-04  < 18549-14|  15> [   0 -   0]
   559 2.561E+05 1.255E-03  ( -17)   2.567E-04   1.381E-04  < 23291-13|  14> [   0 -   0]
   559 2.562E+05 5.004E-04  ( -21)   1.179E-04   6.316E-05  < 22820-14|  14> [   0 -   0]
   560 2.563E+05 3.796E-01  (   7)   1.295E-02   1.060E-03  < 14040-13|  12> [   0 -   0]
   560 2.564E+05 2.075E-02  (  -5)   1.461E-03   5.799E-04  < 28316-14|  14> [   0 -   0]
   560 2.565E+05 3.642E-03  ( -12)   5.683E-04   2.985E-04  < 18549-14|  14> [   0 -   0]
   560 2.566E+05 1.240E-03  ( -17)   2.564E-04   1.369E-04  < 23291-13|  14> [   0 -   0]
   560 2.567E+05 4.946E-04  ( -21)   1.178E-04   6.275E-05  < 22820-14|  14> [   0 -   0]
Are you running these simulations from SV or the command line? If you are running from SV then you should see a popup informing you that the simulation has failed and a Details button when selected might show some information about why the simulation failed.

Your mesh is a bit lumpy which will create some localized flow or stress artifacts but I don't think these would cause the solver to fail, you would see large residues I think.

If the simulation just stops then I am thinking that the OS is terminating it because it is exceeding some limit; disk space or runtime or some other resource.

Cheers,
Dave

POST REPLY