Page 1 of 1

Cannot Find sv1DSolver Package after successful Installation

Posted: Mon Feb 22, 2021 5:24 pm
by hmuucsd
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

Re: Cannot Find sv1DSolver Package after successful Installation

Posted: Mon Feb 22, 2021 5:35 pm
by davep
Hi HmuUCSD,

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

Cheers,
Dave

Re: Cannot Find sv1DSolver Package after successful Installation

Posted: Mon Feb 22, 2021 6:19 pm
by hmuucsd
I found the file. Thank you!
Could you show me how to use the sv1DSolver? I have the input file ready.

Re: Cannot Find sv1DSolver Package after successful Installation

Posted: Tue Feb 23, 2021 10:12 am
by pfaller
Execute the command

Code: Select all

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

Re: Cannot Find sv1DSolver Package after successful Installation

Posted: Tue Feb 23, 2021 7:08 pm
by hmuucsd
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.

Re: Cannot Find sv1DSolver Package after successful Installation

Posted: Wed Feb 24, 2021 11:07 am
by pfaller
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

Re: Cannot Find sv1DSolver Package after successful Installation

Posted: Thu Feb 25, 2021 1:20 pm
by hmuucsd
Thank you very much!
Do I need to put my input file and the solver in the same folder?

Re: Cannot Find sv1DSolver Package after successful Installation

Posted: Fri Feb 26, 2021 1:11 pm
by pfaller
No. You can provide the absolute path to your solver input file.

Re: Cannot Find sv1DSolver Package after successful Installation

Posted: Thu Mar 04, 2021 4:01 pm
by hmuucsd
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.