Page 1 of 1

Post-process uet and uk

Posted: Mon Jul 06, 2020 3:41 pm
by Ionut G
Hello everyone,

I am running k-omega SST, with no wall function, simulations on a straight channel.
I need to save to the post-processing results the friction velocities uet(ustar) and uk.
From the forum discussions I understand that I need to use the "cs_user_postprocess_var.f90" file in order to save the friction velocities.

I modified the "cs_user_postprocess_var.f90" file from examples.
The simulation runs good until the writing of the results file, where I receive the SIGSEGV error:
** Writing the auxiliary restart file
----------------------------------

Start writing
End writing the dimensions and options
End writing the physical properties
End writing the time step
Wrote boundary condition coefficients to checkpoint: checkpoint\auxiliary
End writing the wall distance
End writing
SIGSEGV signal (forbidden memory area access) intercepted!

How can I solve this issue?
I attached the listing and the cs_user_postprocess_var.f90 files.

Any help is greatly appreciated.

Thank you,

Ionut

Re: Post-process uet and uk

Posted: Mon Jul 06, 2020 6:42 pm
by Yvan Fournier
Hello,

Did you try running under a debugger ? Or proofreading your files ?

If you declare uet as a pointer but do not initialize it, a crash is to be expected.

Regards,

Yvan

Re: Post-process uet and uk

Posted: Tue Jul 07, 2020 3:34 pm
by Ionut G
Hello Yvan,

Thank you very much for your support!

I tried to initialize uet, but I keep having the same error SIGSEGV signal, as in the first post.

Could you give me some more guidance or some examples on how to save variables from cs_wall_functions.h subroutine?

I attached the files that I am using: clptur.f90, cs_user_postprocess_var.f90, cs_user_initialization.c.



Thank you Very much,

Ionut

Re: Post-process uet and uk

Posted: Wed Jul 08, 2020 11:39 am
by Yvan Fournier
Hello,

You are still not initializing the uetbor array which you are using in cs_user_postprocess_var.f90.

Regards,

Yvan