Visualising other time-steps in Paraview?

49 views
Skip to first unread message

isaycroire

unread,
Sep 19, 2021, 8:34:50 PM9/19/21
to CRIMSON Users
Hello,

For my project I am trying to find the wall shear stress, which (correct me if I am wrong) cannot be viewed in CRIMSON, and must be viewed in paraview.

The file 'visualiseInParaview_200.pht' is what I open to view this. I have a question: Does this only view at the 200th time-step (end of the simulation)? Is there any way I can view a different time-step, (eg, 100th timestep) in paraview to view the wall shear stress? Alternatively if there is a way to do it in CRIMSON that would be amazing.

Thanks,
Andrew.

cart...@gmail.com

unread,
Sep 21, 2021, 4:40:36 PM9/21/21
to CRIMSON Users
Hi Andrew,


Let me know if that helps!

Best,
Chris

isaycroire

unread,
Oct 11, 2021, 2:02:46 AM10/11/21
to CRIMSON Users
Hi Chris,

Thank you for the reply. I feel that multipostsolver.bat will be able to answer my question, however I am still having difficulties with getting the multipostsolver.bat to run.
I have edited the first line as suggested: 

rem usage: multipostsolver.bat "C:\Users\xxxxxxx\Desktop\xxxxxxxxsims\18-procs-case" 0 100 10

Should I be editing the rest of the code as well, or just saving it after editing only the first line and running the .bat? Saving it after editing only the first line and running the .bat yields this loop:

"C:\Program Files\CRIMSON 2020.12.03\bin\Python\lib\site-packages\CRIMSONSolver\SolverStudies\flowsolver>(
echo 0
 postsolver.exe -sn 0 -newsn 0 -ph -td -bflux -wss -disp
)
0
Will use requested step number 0
Will reduce time-derivative field as requested
Will reduce boundary flux field as requested
Will reduce displacement field as requested
Will reduce wall shear stress field as requested
Opening restart.0.1 to scan for number of variables...
ERROR: No such file or directory
ERROR opening file [restart.0.1].
Exception: STATUS_ACCESS_VIOLATION at rip=00100401B9E
rax=0000000600083B00 rbx=00000000FFFFBEE0 rcx=0000000000000000
rdx=000000010040D7B9 rsi=00000000FFFFBE30 rdi=0000000000000000
r8 =00000000FFFFC0C0 r9 =0000000000000003 r10=0000000100000000
r11=00000001004036DD r12=0000000000000048 r13=000000000000000A
r14=00000000FFFFCBC0 r15=000000018021E3F0
rbp=00000000FFFFBE48 rsp=00000000FFFFB9E0
program=C:\Program Files\CRIMSON 2020.12.03\bin\Python\lib\site-packages\CRIMSONSolver\SolverStudies\flowsolver\postsolver.exe, pid 21996, thread main
cs=0033 ds=002B es=002B fs=0053 gs=002B ss=002B
Stack trace:
Frame        Function    Args
000FFFFBE48  00100401B9E (7FFAE3447490, 00000000000, 0018013FF20, 0010040D7C2)
000FFFFBE48  00100406184 (0000000002F, 00000000000, 000FFFFCC20, 00180252AA0)
000FFFFCCB0  001800479B2 (00000000000, 00000000000, 00000000000, 00000000000)
00000000000  00180045653 (00000000000, 00000000000, 00000000000, 00000000000)
000FFFFFFF0  00180045704 (00000000000, 00000000000, 00000000000, 00000000000)
End of stack trace

When running the multipostsolver.bat as Administrator, it yields this loop instead:

C:\WINDOWS\system32>(
echo 0
 postsolver.exe -sn 0 -newsn 0 -ph -td -bflux -wss -disp
)
0
'postsolver.exe' is not recognized as an internal or external command,
operable program or batch file.

Please assist, I am not sure whether I should be making edits to the rest of the multipostsolver.bat script or just that first line.

Thank you,
Andrew.

Chris Arthurs

unread,
Oct 11, 2021, 4:01:09 PM10/11/21
to isaycroire, CRIMSON Users
Hi Andrew,

You don't edit the .bat file at all - it's just a comment line containing an example of how you invoke it.

Take that first line, adjust it to your use case (i.e. specifying paths and steps to reduce etc.) and run it in the console (cmd or powershell).

i.e. in the linked example, you open a console at the location of the bat file (e.g.
1) Navigate to the directory containing the multipostsolver file: C:\Program Files\CRIMSON 2019.08.01\bin\Python\lib\site-packages\CRIMSONSolver\SolverStudies\flowsolver 
) then you type:
multipostsolver.bat "C:\Users\xxxxxxxxx\Documents\xxxxxxxxxdata\CRIMSON\sims_\sim_1\2-procs-case" 0 200 10
into the console, with the path replaced with the path to the procs-case you want to run, and hit enter.

Best,
Chris

--
You received this message because you are subscribed to the Google Groups "CRIMSON Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to crimson-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/crimson-users/55cb5a63-9ceb-4294-ba25-eb6c014a6aean%40googlegroups.com.

isaycroire

unread,
Oct 12, 2021, 12:09:11 AM10/12/21
to CRIMSON Users
Hi Chris!

Thank you so much for the fast reply. That has helped me, I now can successfully get multipostsolver.bat working. I have run it with the instruction: 

multipostsolver.bat "C:\Users\xxxxxxx\Desktop\xxxxxxxxsims\18-procs-case" 0 100 5 

I am now running into another problem however; in that I am greeted with this error:

C:\Program Files\CRIMSON 2020.12.03\bin\Python\lib\site-packages\CRIMSONSolver\SolverStudies\flowsolver>(
echo 0
 postsolver.exe -sn 0 -newsn 0 -ph -td -bflux -wss -disp
)
0
Will use requested step number 0
Will reduce time-derivative field as requested
Will reduce boundary flux field as requested
Will reduce displacement field as requested
Will reduce wall shear stress field as requested
Opening restart.0.1 to scan for number of variables...
ERROR: No such file or directory
ERROR opening file [restart.0.1].
      0 [main] postsolver 23648 cygwin_exception::open_stackdumpfile: Dumping stack trace to postsolver.exe.stackdump

This error repeats at every 5 time-steps (so it tells me it cannot open restart.0.1, restart 5.1, etc). It is to my understanding that this error is due to the fact that the multipostsolver.bat cannot find the restart.0.1 files which may either be due to the fact I have the wrong directory for the 18-procs-case folder (which I do not believe is the case, as I have copied this directly from my file address bar), or that I have designated the wrong time-steps (the 0 100 5) because it is looking for restart files that do not exist (which I also do not believe is the case, as I can see the restart.0.1, restart 5.1, etc files in the 18-procs-case directory.) 

Any idea on why it is providing me this error?

Thanks,
Andrew.

Chris Arthurs

unread,
Oct 13, 2021, 2:12:08 PM10/13/21
to isaycroire, CRIMSON Users
Did you execute precisely "multipostsolver.bat "C:\Users\xxxxxxx\Desktop\xxxxxxxxsims\18-procs-case" 0 100 5 ", or did you replace the path with the correct path to your 18 procs case folder? I know it's a silly question, but it's all that I can see jumping out at me.

You could also try copying the whole procs-case folder somewhere with a shorter path, like just c:\18-procs-case, in case it's a file length problem.

Best,
Chris

You received this message because you are subscribed to a topic in the Google Groups "CRIMSON Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/crimson-users/FfLnlLDHyGc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to crimson-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/crimson-users/9928c597-de8a-4922-94c3-e010d5ec108en%40googlegroups.com.

isaycroire

unread,
Oct 27, 2021, 8:36:29 PM10/27/21
to CRIMSON Users
Hi Chris,

Thank you for all of your help. Just wanted to update you and let you know I have managed to get it working! I had re-installed CRIMSON and it worked fine. I think I must have messed up the multipostsolver.bat script when I was trying to get it to work much earlier - my bad!

One final unrelated question; I've generated files for Paraview and can now measure the wall shear stress, but I am not sure what the units are! Do you know what the default units are for wall shear stress, or do you know where I can find the units for this?

Thanks,
Andrew.
Reply all
Reply to author
Forward
0 new messages