Search found 175 matches

by Tsubasa
Wed Jul 26, 2023 10:22 pm
Forum: code_saturne usage
Topic: How to calculate scalar based on frozen average velocity?
Replies: 57
Views: 801600

Re: How to calculate scalar based on frozen average velocity?

Hello Yvan, Sorry I do not understand well, so let me check. What I want to do now is Step 1 - make an average velocity field in some way (total 18000 steps, and calculate the average from 6000step to 18000step) Step 2 - Solve scalar transport on the average velocity using URANS. (Here I want to get...
by Tsubasa
Wed Jul 26, 2023 12:15 am
Forum: code_saturne usage
Topic: How to calculate scalar based on frozen average velocity?
Replies: 57
Views: 801600

Re: How to calculate scalar based on frozen average velocity?

Hello Yvan, Thank you for your quick response. As you said, what I want to do now is to switch PRANS to URNAS before and after restarting. I know this bag does not occur when I used PRANS (or URANS) both before and after restarting. But unfortunately, I had a divergence problem when running URANS fo...
by Tsubasa
Tue Jul 25, 2023 7:05 pm
Forum: code_saturne usage
Topic: How to calculate scalar based on frozen average velocity?
Replies: 57
Views: 801600

Re: How to calculate scalar based on frozen average velocity?

Hello Yvan, Can you test it with these files? At first, flow is solved and get average velocity field by URANS. flow_simple_test.zip Second, the scalar transport is solved on the average velocity field by pseudo-RANS. scalar_simple_test.zip As I said, in the example for scalar transport, all the vel...
by Tsubasa
Sun Jul 23, 2023 12:30 am
Forum: code_saturne usage
Topic: Volumic flow rate as boundary conndition
Replies: 1
Views: 6350

Volumic flow rate as boundary conndition

Hello all, I'm sorry maybe this is a little bit stupid question. Let's say, when there are three inlet faces of the same shape, and I give a volumic flow rate 13 (m^3/s) in GUI to all three inlet faces. In this case, each face has 13 (m^3/s) volumic flow rate, right? It does not mean the total of th...
by Tsubasa
Thu Jul 06, 2023 11:15 am
Forum: code_saturne usage
Topic: How to calculate scalar based on frozen average velocity?
Replies: 57
Views: 801600

Re: How to calculate scalar based on frozen average velocity?

Hello Yvan, I faced the same problem in the last post, and I noticed when it occurs. Let's say when the flow simulation is run with Steady RANS to get the average flow field at first, we have a problem if we use unsteady RANS or something different solver after restarting. In that case, the flow bec...
by Tsubasa
Sat Jul 01, 2023 2:44 am
Forum: code_saturne usage
Topic: Outlet condition with negative velocity
Replies: 3
Views: 10224

Re: Outlet condition with negative velocity

Hello Yvan, For example, I tried the inlet condition with a negative velocity (handled by GUI) and set for scalar by this code: call getfbr('extraction_duct', nlelt, lstelt) do ilelt = 1, nlelt ifac = lstelt(ilelt) itypfb(ifac) = ientre !Neumann B.C for scalar: call field_get_id("scalar1",...
by Tsubasa
Fri Jun 30, 2023 11:07 pm
Forum: code_saturne usage
Topic: Outlet condition with negative velocity
Replies: 3
Views: 10224

Outlet condition with negative velocity

Hello all, I am trying to make a outlet boundary conditions where: - velocity has a negative volumic flow rate (m3/s) - Neumann condition for scalar transport Otherwise, I am also considering another idea instead of the above, - inlet condition with a negative volumic flow rate (m3/s) (This is easy ...
by Tsubasa
Sun Jun 25, 2023 8:40 pm
Forum: code_saturne usage
Topic: Problem of MPI?
Replies: 3
Views: 8300

Re: Problem of MPI?

Hello, Actually, I did not solve this problem at that time, and I did not remember correctly how I solved this. I guess I re-installed a few times. Then after that, I did not face this problem. Sorry I cannot give you good answer, but anyway you should provide the info recommended in the installatio...
by Tsubasa
Fri Apr 07, 2023 8:52 pm
Forum: code_saturne usage
Topic: Mapped inlet when there are another inlet faces
Replies: 25
Views: 34270

Re: Mapped inlet when there are another inlet faces

Hello Yvan, Thank you, it works now. cs_user_boundary_conditions-mapped_inlet.f90 !------------------------------------------------------------------------------- ! Code_Saturne version 6.0.5 ! -------------------------- ! This file is part of Code_Saturne, a general-purpose CFD tool. ! ! Copyright ...
by Tsubasa
Mon Apr 03, 2023 11:14 am
Forum: code_saturne usage
Topic: Mapped inlet when there are another inlet faces
Replies: 25
Views: 34270

Re: Mapped inlet when there are another inlet faces

Hello Yvan, Thank you for your reply and your notice, but let me continue Fortran now. I will change it to C. Here is a script. I am also thinking something is overwrapped. cs_user_boundary_conditions-mapped_inlet.f90 !------------------------------------------------------------------------------- !...