Search found 114 matches

by Mohammad
Wed Jan 06, 2021 9:41 am
Forum: code_saturne usage
Topic: Dirichlet boudary condition for inlet and outlet
Replies: 24
Views: 11942

Re: Dirichlet boudary condition for inlet and outlet

Hello, There is another field in postprocessing files named total_pressure you can check its value in paraview. The reference pressure is 1.01325xE5 Pascals by default and you can also set its value in cs_user_parameters file. I think the [relative] pressure is: static pressure + dynamic pressure - ...
by Mohammad
Wed Jan 06, 2021 8:18 am
Forum: code_saturne usage
Topic: Dirichlet boudary condition for inlet and outlet
Replies: 24
Views: 11942

Re: Dirichlet boudary condition for inlet and outlet

Hello,

The value set in your codes is total pressure while you are looking at relative pressure in the picture.

Regards,
Mohammad
by Mohammad
Wed Dec 23, 2020 9:13 pm
Forum: code_saturne usage
Topic: Blendings in code_saturne
Replies: 1
Views: 1457

Blendings in code_saturne

Hello, I'm a little bit confused about blending of schemes in code_saturne. We can choose the second order scheme between Central & SOLU schemes by setting the value of ischcv to 1 or 0. I'm OK with these two choices. We also have blencv which indicates the proportion of second-order convective ...
by Mohammad
Sun Dec 13, 2020 10:20 pm
Forum: code_saturne usage
Topic: Values of source terms depend on the number of MPI processes!
Replies: 6
Views: 3288

Re: Values of source terms depends on the number of MPI processes!

Hello,

Thank you Yvan.
I'll consider that.

Regards,
Mohammad
by Mohammad
Sun Dec 13, 2020 4:18 pm
Forum: code_saturne usage
Topic: Values of source terms depend on the number of MPI processes!
Replies: 6
Views: 3288

Re: Values of source terms depends on the number of MPI processes!

Hello,

Tahnk you very very much dear Yvan,
I really appreciate it.

Yes! The problem caused by that line!

No I didn't run the code in debug mode. How can I do that?


Kind Regards,
Mohammad
by Mohammad
Sun Dec 13, 2020 8:22 am
Forum: code_saturne usage
Topic: Values of source terms depend on the number of MPI processes!
Replies: 6
Views: 3288

Re: Values of source terms depends on the number of MPI processes!

Hello,

Ofcourse, I edited viswal.f90 and it is calculated there at the last lines of the file:

I also attach source term files and field files:
cs_user_source_terms.f90
(7.4 KiB) Downloaded 182 times
cs_user_parameters-fields.c
(5.63 KiB) Downloaded 181 times

Regards,
Mohammad
by Mohammad
Sun Dec 13, 2020 12:51 am
Forum: code_saturne usage
Topic: Values of source terms depend on the number of MPI processes!
Replies: 6
Views: 3288

Values of source terms depend on the number of MPI processes!

Hello, I just added a source term by using cs_user_source_terms.f90 file. By adding the source term, the simulation diverged, so I decided to create three test fields in order to check the values of the source terms. These fields are added as property on mesh cells and named: CVAR1 , CVAR2 , CVAR3 ....
by Mohammad
Sat Dec 12, 2020 4:52 am
Forum: code_saturne usage
Topic: Defined postprocess writer does not work
Replies: 6
Views: 3393

Re: Defined postprocess writer does not work

Hello,

Thank you very much dear Yvan.

Best Regards,
Mohammad
by Mohammad
Fri Dec 11, 2020 1:48 pm
Forum: code_saturne usage
Topic: Defined postprocess writer does not work
Replies: 6
Views: 3393

Re: Defined postprocess writer does not work

Hello, Thanks again! I added the function to cs_user_postprocess.c as below, but still writes the main variables like pressure, mpi_rank_id, courantNb, turbvisc and, total_pressure. cs_user_postprocess_meshes(void) { { const int writer_ids[] = {1}; cs_post_define_volume_mesh(CS_POST_MESH_VOLUME, &qu...
by Mohammad
Fri Dec 11, 2020 5:58 am
Forum: code_saturne usage
Topic: Defined postprocess writer does not work
Replies: 6
Views: 3393

Re: Defined postprocess writer does not work

Hello, Thanks a lot. The problem solved. But the new writer, writes all of the fields just like the default writer. I want it to only write a few fields, and also I want the default writer to write all of the fields. I think it is related to CS_POST_WRITER_ALL_ASSOCIATED . Is there anyway? Regards, ...