Cannot Find sv1DSolver Package after successful Installation

Provides a system for patient-specific cardiovascular modeling and simulation.
POST REPLY
User avatar
Hao Mu
Posts: 7
Joined: Fri Jul 26, 2019 1:59 pm

Cannot Find sv1DSolver Package after successful Installation

Post by Hao Mu » Mon Feb 22, 2021 5:24 pm

Dear SimVascular team,
I installed the sv1DSolver package for my Mac 10.12.6, but I could not find it on my computer. Searching the whole Mac does not give me any results except the installation file or past SimVascular projects. I attached the basic system overview of my mac below. Could you help me solve this problem? Thank you very much!
Best,
HmuUCSD
Attachments
System Info.png
Basic system information
System Info.png (16.29 KiB) Viewed 386 times

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

Re: Cannot Find sv1DSolver Package after successful Installation

Post by David Parker » Mon Feb 22, 2021 5:35 pm

Hi HmuUCSD,

The 1D solver is installed in /usr/local/sv/oneDSolver.

Cheers,
Dave

User avatar
Hao Mu
Posts: 7
Joined: Fri Jul 26, 2019 1:59 pm

Re: Cannot Find sv1DSolver Package after successful Installation

Post by Hao Mu » Mon Feb 22, 2021 6:19 pm

I found the file. Thank you!
Could you show me how to use the sv1DSolver? I have the input file ready.

User avatar
Martin Pfaller
Posts: 60
Joined: Tue Oct 01, 2019 10:23 am

Re: Cannot Find sv1DSolver Package after successful Installation

Post by Martin Pfaller » Tue Feb 23, 2021 10:12 am

Execute the command

Code: Select all

/usr/local/sv/oneDSolver/2019-07-09/bin/OneDSolver path_to_your_input_file

User avatar
Hao Mu
Posts: 7
Joined: Fri Jul 26, 2019 1:59 pm

Re: Cannot Find sv1DSolver Package after successful Installation

Post by Hao Mu » Tue Feb 23, 2021 7:08 pm

Thank you for the help! The solver works, but it gives me an error message shown below. I double-checked my input file but could not find the source of this error. Can you help me with that? I also attached my input file as a reference.
Thank you very much!

>>>>>>>>>>>>>>>>>>
(base) MuHaodeMBP:~ muhao$ /usr/local/sv/oneDSolver/2019-07-09/bin/OneDSolver /Users/muhao/Desktop/svOneDSolver_build
---------------------------------
oneDSolver
1D Finite Element Hemodynamics
---------------------------------

Reading file: /Users/muhao/Desktop/svOneDSolver_build ...

Printing Model Echo ...

Creating and Running Model ...
Creating Nodes ...
Creating Joints ...
Creating Materials ...
Creating Data Tables ...
Creating Segments ...
Solving Model ...
ERROR: Cannot find data table entry from string key: .

Terminated.
Attachments
solver.in.rtf
Input file (converted to text)
(7.49 KiB) Downloaded 4 times

User avatar
Martin Pfaller
Posts: 60
Joined: Tue Oct 01, 2019 10:23 am

Re: Cannot Find sv1DSolver Package after successful Installation

Post by Martin Pfaller » Wed Feb 24, 2021 11:07 am

Hi Hao,

It seems like your command doesn't use your input file. It should be something like

Code: Select all

/usr/local/sv/oneDSolver/2019-07-09/bin/OneDSolver solver_hao.in
Always save your input file as pure text (e.g. .txt). The .rtf file format contains additional information that the solver can't read.

I replaced the tabs in your input file with spaces and the solver can now read the file (attached). However, the first time step doesn't converge. Please check that all your parameters have the correct unit (inflow, boundary conditions, material).

For reference, I attached one of my input files (aorta). You can also have a look at the test cases here:

https://github.com/SimVascular/svOneDSo ... aster/test

Best
Martin
Attachments
Archive.zip
(8.5 KiB) Downloaded 12 times

User avatar
Hao Mu
Posts: 7
Joined: Fri Jul 26, 2019 1:59 pm

Re: Cannot Find sv1DSolver Package after successful Installation

Post by Hao Mu » Thu Feb 25, 2021 1:20 pm

Thank you very much!
Do I need to put my input file and the solver in the same folder?

User avatar
Martin Pfaller
Posts: 60
Joined: Tue Oct 01, 2019 10:23 am

Re: Cannot Find sv1DSolver Package after successful Installation

Post by Martin Pfaller » Fri Feb 26, 2021 1:11 pm

No. You can provide the absolute path to your solver input file.

User avatar
Hao Mu
Posts: 7
Joined: Fri Jul 26, 2019 1:59 pm

Re: Cannot Find sv1DSolver Package after successful Installation

Post by Hao Mu » Thu Mar 04, 2021 4:01 pm

Hi Martin,
I double-checked all data in my input file, but I still got NaN soon after start of simulation. Do you have any suggestions? Thank you very much!

>>>>>>>>>>>>>>>
(base) MuHaodeMacBook-Pro:~ muhao$ /usr/local/sv/oneDSolver/2019-07-09/bin/OneDSolver /Users/muhao/Desktop/svOneDSolver_build/solver_Mar4.in
---------------------------------
oneDSolver
1D Finite Element Hemodynamics
---------------------------------

Reading file: /Users/muhao/Desktop/svOneDSolver_build/solver_Mar4.in ...

Printing Model Echo ...

Creating and Running Model ...
Creating Nodes ...
Creating Joints ...
Creating Materials ...
Creating Data Tables ...
Creating Segments ...
Solving Model ...
Inlet Condition Type: FLOW

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Number of Joints: 0
Number of Segments: 1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

this that set ehr =73738.000000 p1_=16599.000000
subdomain cpp setupMaterial matID=0
RCR boundary condition
Subdomain No. 1
Joint No. 0
Outlet No. 1
Number of equations 202
Using Conservative Form ...
maxStep/stepSize: 10000
Total Solution is: 10000 x 202
**** Time cycle 1
iter: 0 normf: 29624.3 norms: 0.841068 time: 0.000228
iter: 1 normf: 267086 norms: 2.41793 time: 0.000131
iter: 2 normf: 80491.8 norms: 0.839291 time: 0.000147
Calculated a NaN for the residual.
Terminated.
Attachments
solver_Mar4.in copy.txt
Input file that creates NaN
(6.99 KiB) Downloaded 5 times

POST REPLY