Page 1 of 1

Issues with flow calculation and with running two simulations at cluster at the same time

Posted: Mon Aug 10, 2020 2:10 pm
by valentinas96
Hello everyone,

I am having some problems with my SimVascular simulation. At the inlet I am imposing patient specific boundary conditions using a customized BCT file. In my model only one inlet is present and here I am imposing customized velocities through the BCT file. This one seems to be read in the correct way since the velocity profile showed in the results is correct. The problem is in the computation of the flow. The flow profile and values are different from what I expect - I calculate the flow profile and values using a software and the same velocities written in the bct file. I have tried to reduce the time step, but the results are always the same, does anyone have any idea of what could be the problem?

I have also an issue with running the simulation job at cluster. One of my colleagues and I are using the same node of the cluster, which has 40 processors. Each one of us uses 13 processors but when we run two different simulation jobs at the same time the %CPU used lowers from 100% to 50%, is there a way to solve this problem?

Thank you for your help,
Valentina

Re: Issues with flow calculation and with running two simulations at cluster at the same time

Posted: Mon Aug 10, 2020 7:25 pm
by davep
Hi Valentina,

How are the flow results different than what you expect, too small, too large, wrong direction(!) ? Attach you .bct file and I'll have a look, make sure the normals are in the right direction.

Running a job on a cluster using mpiexec -np N should only use N processors. When you execute a solver job to you see a directory named N-procs_case created? Maybe this has something to do with hyperthreading on your cluster.

Cheers,
Dave

Re: Issues with flow calculation and with running two simulations at cluster at the same time

Posted: Wed Aug 12, 2020 9:13 am
by valentinas96
Thank you for your replay!

With my velocities the flow should always be entering the model and should show two peaks, the first one higher than the second one, while from my results the flow exits the model in the first 0.5s -the total simulation time is 0.94s-, then it reaches the first peak at the correct time step but with a value which is lower than I expected. The second peak is again at the right time step but with an higher value. The bct file is attached at the end of the message, I've included only a portion of it because the whole file was too large.

As far as the cluster is concerned, the directory is correctly created, so I'll check the management of hyperthreading.

Many thanks,
Valentina

Re: Issues with flow calculation and with running two simulations at cluster at the same time

Posted: Wed Aug 12, 2020 7:48 pm
by wgyang
How about taking a step back? Use your own software and procedure to generate a time-dependent bct.dat with a parabolic profile and make sure it is identical to the bct.dat file generated by SV. Then make a steady inflow file with a nonidealized profile (customized nodal velocities). Do they work?