Search found 15 matches

by Mohammad
Fri Oct 18, 2019 11:07 pm
Forum: Code_Saturne usage
Topic: How can I get the derivatives of velocity field?
Replies: 8
Views: 199

Re: How can I get the derivatives of velocity field?

Hello, Thanks for your helps, I'm using Ubuntu 18.04. It seems that the problem solved by using cs_field_gradient_scalar instead of cs_field_gradient_vector ! But I have a new problem: When the calculation ends, the CS says: **************************** Saving calculation results *******************...
by Mohammad
Fri Oct 18, 2019 5:09 pm
Forum: Code_Saturne usage
Topic: How can I get the derivatives of velocity field?
Replies: 8
Views: 199

Re: How can I get the derivatives of velocity field?

Thank you! I used those codes to sum the three components of gradient of velocity field at each point. So I wrote the following C code in cs_user_postprocess.c file. But it does not give me any output at all! My CS version is 5.0.9. void cs_user_postprocess_values(const char *mesh_name, int mesh_id,...
by Mohammad
Wed Oct 16, 2019 5:20 am
Forum: Code_Saturne usage
Topic: Export the data calculated by extra operations
Replies: 5
Views: 65

Re: Export the data calculated by extra operations

Thank you.
If I want to use cs_user_postprocess.c and write the code in C language, can I use and call the variables which I defined in Fortran files like cs_user_modules.f90 and cs_user_initilization.f90 or I have to use the C file type of them?
by Mohammad
Tue Oct 15, 2019 2:16 pm
Forum: Code_Saturne usage
Topic: Export the data calculated by extra operations
Replies: 5
Views: 65

Re: Export the data calculated by extra operations

So, I should convert my fortran code to C language?
by Mohammad
Tue Oct 15, 2019 1:04 pm
Forum: Code_Saturne usage
Topic: Export the data calculated by extra operations
Replies: 5
Views: 65

Export the data calculated by extra operations

Hi, I wrote some codes in cs_user_extra_operations.f90 file which calculates strain rate tensor and also shear stress tensor at each point and each time step. Now, I want to export this data in the template and format of the exported data files in RESU/... folder (for example: results.velocity.0001 ...
by Mohammad
Sat Oct 12, 2019 6:25 pm
Forum: Code_Saturne usage
Topic: SIGSEGV signal (forbidden memory area access) intercepted in version 6.0
Replies: 2
Views: 85

Re: SIGSEGV signal (forbidden memory area access) intercepted in version 6.0

Thanks for your reply,
I attached the case.
The mesh size was about 150Mb so I did not upload it.
by Mohammad
Fri Oct 11, 2019 9:23 am
Forum: Code_Saturne usage
Topic: SIGSEGV signal (forbidden memory area access) intercepted in version 6.0
Replies: 2
Views: 85

SIGSEGV signal (forbidden memory area access) intercepted in version 6.0

Hi, I just uninstalled version 5.0 and installed version 6.0. Now when I use cs_user_parameters-time_moments.c (exactly same file in SRC/EXAMPLES) file to calculate U_mean, I get the following error: SIGSEGV signal (forbidden memory area access) intercepted! Call stack: 1: 0x559b0c5aeefa <+0x2efa> (...
by Mohammad
Fri Oct 11, 2019 7:01 am
Forum: Code_Saturne usage
Topic: How can I get the derivatives of velocity field?
Replies: 8
Views: 199

Re: How can I get the derivatives of velocity field?

If you can't see, I want (∂u/∂y + ∂v/∂x)
It's one of strain rate matrix components.
by Mohammad
Wed Oct 09, 2019 5:56 pm
Forum: Code_Saturne usage
Topic: Subgrid-Scale stress tensor in code_saturne
Replies: 0
Views: 67

Subgrid-Scale stress tensor in code_saturne

Hi,
Does Code_Saturne calculate subgrid-scale stress tensor in LES?
If yes, how can I get the values?
by Mohammad
Wed Oct 09, 2019 5:41 pm
Forum: Code_Saturne usage
Topic: How can I get the derivatives of velocity field?
Replies: 8
Views: 199

Re: How can I get the derivatives of velocity field?

Thank you Jamal!
Now, the problem is how to get each component of calculated gradient to sum the mentioned expression?
Image
(∂u/∂y + ∂v/∂x)