Post-process uet and uk

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
Ionut G
Posts: 43
Joined: Fri Apr 20, 2018 2:43 pm

Post-process uet and uk

Post 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
Attachments
cs_user_postprocess_var.f90
(9.64 KiB) Downloaded 164 times
listing.txt
(38.9 KiB) Downloaded 150 times
Yvan Fournier
Posts: 4070
Joined: Mon Feb 20, 2012 3:25 pm

Re: Post-process uet and uk

Post 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
Ionut G
Posts: 43
Joined: Fri Apr 20, 2018 2:43 pm

Re: Post-process uet and uk

Post 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
Attachments
cs_user_postprocess_var.f90
(9.66 KiB) Downloaded 174 times
clptur.f90
(100.9 KiB) Downloaded 157 times
cs_user_initialization.c
(3.87 KiB) Downloaded 162 times
Yvan Fournier
Posts: 4070
Joined: Mon Feb 20, 2012 3:25 pm

Re: Post-process uet and uk

Post by Yvan Fournier »

Hello,

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

Regards,

Yvan
Post Reply