Search found 114 matches

by Mohammad
Wed Aug 05, 2020 9:15 pm
Forum: code_saturne usage
Topic: No values on boundaries for post-processing
Replies: 8
Views: 3468

Re: No values on boundaries for post-processing

Hello,

Thank you very much Yvan!

Regards,

Mohammad
by Mohammad
Tue Aug 04, 2020 10:10 am
Forum: code_saturne usage
Topic: No values on boundaries for post-processing
Replies: 8
Views: 3468

Re: No values on boundaries for post-processing

Hello, Thank you very much Mr. Fournier. Your solution worked! But in CS 5.0.4 the function's output was the field ID and it seems that it is modified in CS 6.0.4. Just two more question: 1- Does the forces given by the " boundary_forces " field are in X and Y directions or in the tangenti...
by Mohammad
Sun Aug 02, 2020 1:14 pm
Forum: code_saturne usage
Topic: No values on boundaries for post-processing
Replies: 8
Views: 3468

Re: No values on boundaries for post-processing

Hello, Thanks for the reply. As I mentioned before, there is no option related to " boundary_forces " in GUI and nothing more than an example file with the name: cs_user_extra_operations-boundary_forces.c which seems to calculate the total force on boundaries. But I checked the source code...
by Mohammad
Fri Jul 31, 2020 9:30 am
Forum: code_saturne usage
Topic: No values on boundaries for post-processing
Replies: 8
Views: 3468

Re: No values on boundaries for post-processing

Hello Mr. Yvan and thank you. You're right indeed. I can create the XML file of the case in workstation and then run it on cluster, but I was afraid that it might lead to conflict with my custom user functions and boundary conditions and forces because I have a lot of custom user functions, non-stan...
by Mohammad
Thu Jul 30, 2020 3:41 pm
Forum: code_saturne usage
Topic: No values on boundaries for post-processing
Replies: 8
Views: 3468

No values on boundaries for post-processing

Hello, I use Tecplot for post-processing my CFD simulations. When I load the results generated by Code_Saturne to Tecplot, there are no values available for velocity, pressure and Reynolds stresses on the boundaries and only mpi_rank_id and yplus are available. I think It's because of the concept of...
by Mohammad
Thu Jul 30, 2020 2:51 pm
Forum: code_saturne usage
Topic: Convective outlet boundary conditions
Replies: 4
Views: 4762

Re: Convective outlet boundary conditions

Hello, For itypcl, I think isolib should be fine. In all cases, I recommend using the GUI as much as possible, and only using user functions to complete or "overwrite" settings not available in the GUI. This keeps user functions smaller, more readable, and more maintainable. With the GUI,...
by Mohammad
Thu Jul 30, 2020 11:30 am
Forum: code_saturne usage
Topic: Convective outlet boundary conditions
Replies: 4
Views: 4762

Re: Convective outlet boundary conditions

Hello, Thanks a lot dear Yvan. I found that the first component, rcodcl(ifac,iu,1) is the velocity at the previous time step. But setting a value for the second component rcodcl(ifac,iu,2) is confusing! In the theory PDF file it is mentioned that these two components are Y_{fb}^n (which is the previ...
by Mohammad
Tue Jul 28, 2020 8:28 pm
Forum: code_saturne usage
Topic: Convective outlet boundary conditions
Replies: 4
Views: 4762

Convective outlet boundary conditions

Hello, I'm going to set a convective outlet boundary condition for the incompressible flow around a 3d airfoil, but I'm a little bit confused. I read the section about this type of boundary in the theory PDF file which is given below: https://i.imgur.com/9jl0Rb7.png I want to set this condition for ...
by Mohammad
Tue Jul 28, 2020 5:52 pm
Forum: code_saturne usage
Topic: How to set the relaxation factor in Code_Saturne?
Replies: 4
Views: 3504

Re: How to set the relaxation factor in Code_Saturne?

Hello, Did you also copy the settings back (in C, we can get the pointer to avoid needing this, but in Fortran, you need to copy local values back to the field data); if you have not done it, it explains why it does not appear modified in setup.log: call field_set_key_struct_var_cal_opt(ivarfl(ipr)...
by Mohammad
Tue Jul 28, 2020 8:24 am
Forum: code_saturne usage
Topic: How to set the relaxation factor in Code_Saturne?
Replies: 4
Views: 3504

Re: How to set the relaxation factor in Code_Saturne?

Hello, The post is obsolete. The syntax has changed. relaxv is now a member of the var_cal_opt structure (usable from both C and Fortran), for which the Doxygen examples should show how to access/modify members (see examples in cs_user_parameters-base.c for iwarni or blencv, and do the same for rel...