Search found 114 matches

by Mohammad
Fri Dec 11, 2020 12:28 am
Forum: code_saturne usage
Topic: Defined postprocess writer does not work
Replies: 6
Views: 3389

Defined postprocess writer does not work

Hello, I defined a new writer which I want it to write my desired fields, for example, I want it to only write the velocity field every 10 iterations. In cs_user_postprocess.c and under cs_user_postprocess_writers() I added: cs_post_define_writer(1, /* writer_id */ "velocity_writer", /* wr...
by Mohammad
Thu Dec 03, 2020 10:52 am
Forum: code_saturne usage
Topic: Dirichlet boudary condition for inlet and outlet
Replies: 24
Views: 11932

Re: Dirichlet boudary condition for inlet and outlet

Hello, Yes that's right you just need to add cs_user_boundary_conditions.f90 or cs_user_boundary_conditions.c to SRC folder. For Dirichlet B.C. you need something like this (in Fortran): call getfbr('BOUNDARY_NAME', nlelt, lstelt) do ilelt = 1, nlelt ifac = lstelt(ilelt) itypfb(ifac) = 77! Custom nu...
by Mohammad
Mon Nov 30, 2020 9:24 pm
Forum: code_saturne usage
Topic: Different pressure values on different machines!
Replies: 18
Views: 6804

Re: Different pressure values on different machines!

Hello,

Thank you dear Yvan,
It seems that your attached file solved the problem!

Please keep in mind to fix this problem in newer versions.

Regards,
Mohammad
by Mohammad
Wed Nov 25, 2020 6:50 am
Forum: code_saturne usage
Topic: Different pressure values on different machines!
Replies: 18
Views: 6804

Re: Different pressure values on different machines!

Hello, Thanks for your reply. I don't see any attached files in your reply and I'm not using turbomachinery module. Today I figured out that another problem is happening! Few days ago, I just stopped using more than 1 threads and ran the code with OMP_NUM_THREADS = 1 to solve the problem with pressu...
by Mohammad
Tue Nov 24, 2020 10:11 pm
Forum: code_saturne usage
Topic: Different pressure values on different machines!
Replies: 18
Views: 6804

Re: Different pressure values on different machines!

Hello, Thank you dear Yvan, I appreciate your helps. The CS_RENUMBER_B_FACES_NONE did not help. But since the bug is not fixed yet, can I implement the homogeneous Neuman B.C for the pressure at the outlet as Dirichlet B.C? I mean for the 1st order Neumann B.C we have (after discretizing): P[boundar...
by Mohammad
Sun Nov 22, 2020 11:23 pm
Forum: code_saturne usage
Topic: Different pressure values on different machines!
Replies: 18
Views: 6804

Re: Different pressure values on different machines!

Hello, I noticed that the problem only occurs if I use OMP_NUM_THREADS>1 (bigger than 1) and Neumann boundary condition for the pressure at the outlet(as I mentioned before), this problem occurs and the pressure field overshoots and values for the pressure keep getting bigger and bigger after each i...
by Mohammad
Sat Nov 21, 2020 10:04 pm
Forum: code_saturne usage
Topic: Using generated mesh partitioning files on another machine
Replies: 2
Views: 1256

Re: Using generated mesh partitioning files on another machine

Hello,

Thank you, Yvan.
I think it's working because I see the following lines:
Reading file: mesh_input
Finished reading: mesh_input

Reading file: partition_input/domain_number_28
Finished reading: partition_input/domain_number_28
Regards,
Mohammad
by Mohammad
Sat Nov 21, 2020 9:21 am
Forum: code_saturne usage
Topic: Error in calculation stage
Replies: 2
Views: 2508

Re: Error in calculation stage

Hello, When I installed code_saturne for the first time, I had the similar problem. The problem solved by using the following command in terminal before running the code: export LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH" Hope it works for you, too. If it doesn't help, then it maybe ...
by Mohammad
Sat Nov 21, 2020 9:17 am
Forum: code_saturne usage
Topic: What is the problem: Permission Denied ?
Replies: 6
Views: 2906

Re: What is the problem: Permission Denied ?

Hello,

I'm not very expert at this, but you check the following command (sudo) to check if the error is due to user permissions or not:

Code: Select all

sudo csrun create -s test -c case1
Regards,
Mohammad
by Mohammad
Fri Nov 20, 2020 11:49 pm
Forum: code_saturne usage
Topic: Using generated mesh partitioning files on another machine
Replies: 2
Views: 1256

Using generated mesh partitioning files on another machine

Hello, I'm using a cluster which PT-Scotch is not installed on it. So, I'm going to do the partitioning on my PC using PT-Scotch and then transfer the generated partitioning and the mesh_output files to the cluster. First of all, is it possible to transfer and use the partitioning files generated by...