Search found 175 matches

by Tsubasa
Thu Mar 30, 2023 10:49 pm
Forum: code_saturne usage
Topic: Mapped inlet when there are another inlet faces
Replies: 25
Views: 32108

Re: Mapped inlet when there are another inlet faces

Hello, It has been a long time since I came last time. I did not use codesaturn for a long while, so I have to remember one by one... In the past, I asked you how to remap without rescaling, and I succeeded. Now I want to use the same code but apply remapping to two faces. As I did before, for the f...
by Tsubasa
Tue Nov 22, 2022 6:20 pm
Forum: code_saturne usage
Topic: How to calculate scalar based on frozen average velocity?
Replies: 57
Views: 796525

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

Hello,

I tried as you said, but unfortunately the same problem happened.

Best regards,
Hamada
by Tsubasa
Mon Nov 14, 2022 2:10 pm
Forum: code_saturne usage
Topic: Importing CodeSaturne simulaiton into Openfoam
Replies: 1
Views: 1908

Importing CodeSaturne simulaiton into Openfoam

Hello, I am just wondering if there is someone who restarts the simulation of CodeSaturne in Openfoam. Now I am thinking of a direct simulation and a inverse simulation. I am planning to run the direct simulation in CodeSaturn. Then I will export the data and import it into Openfoam, and run the inv...
by Tsubasa
Tue Nov 08, 2022 5:36 am
Forum: code_saturne usage
Topic: How to calculate scalar based on frozen average velocity?
Replies: 57
Views: 796525

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

Hello Yvan, Sorry for restarting from old posts. These days I had some problems when I overwrite the velocity field with the average velocity field. Replacing velocity with the average velocity works. No problem happened here. However, even though it works, scalar transport cannot be solved based on...
by Tsubasa
Sun Oct 09, 2022 12:25 am
Forum: code_saturne usage
Topic: Mapped inlet when there are another inlet faces
Replies: 25
Views: 32108

Re: Mapped inlet when there are another inlet faces

Hello everyone, I would like to share the code that can map all variables to another inlet face without any rescaling. call getfbr('mapped_inlet_duct', nlfac, lstfac) if (ntcabs == ntpabs) then allocate(lstcel(ncel)) do iel = 1, ncel lstcel(iel) = iel enddo coord_shift(1,1) = -0.02 coord_shift(2,1) ...
by Tsubasa
Sat Oct 08, 2022 11:25 pm
Forum: code_saturne usage
Topic: Restart simulation with different mesh
Replies: 2
Views: 1983

Restart simulation with different mesh

Hello, I just want to know if it is possible to restart with a different mesh. I think it is possible because there are some options in GUI about different mesh. In my case, the calculation procedure is the followings: 1. Flow simulation with a coarse mesh to get average flow. 2. Scalar transport wi...
by Tsubasa
Fri Oct 07, 2022 10:26 am
Forum: code_saturne usage
Topic: Possible to impose Dirichlet condition for velocity and pressure at the same time?
Replies: 3
Views: 2966

Re: Possible to impose Dirichlet condition for velocity and pressure at the same time?

Hello Yvan, I tested the following boundary conditions. For Vx and Vz at the inlet, I gave Dirichlet conditions and for Vy at the inlet I gave Neumann conditions. The subroutine code is here: call getfbr('inlet', nlelt, lstelt) do ilelt = 1, nlelt ifac = lstelt(ilelt) itypfb(ifac) = ientre !Dirichle...
by Tsubasa
Wed Oct 05, 2022 6:20 pm
Forum: code_saturne usage
Topic: Mapped inlet when there are another inlet faces
Replies: 25
Views: 32108

Re: Mapped inlet when there are another inlet faces

Hello,

This is a small test.
You can download them.
Would you test them?
mapped_inlet.med
(620.28 KiB) Downloaded 84 times
test_mapped_inlet.zip
(437.39 KiB) Downloaded 81 times
Best regards,
Tsubasa
by Tsubasa
Wed Oct 05, 2022 1:20 pm
Forum: code_saturne usage
Topic: Mapped inlet when there are another inlet faces
Replies: 25
Views: 32108

Re: Mapped inlet when there are another inlet faces

Hello, I run the following code. Is it what you mean? do f_id = 0, n_fields-1 normalize = 0 print *, f_id call boundary_conditions_mapped_set(f_id, inlet_l, MESH_LOCATION_CELLS, & normalize, interpolate, & nlfac, lstfac, rvoid, & nvar, rcodcl) enddo Let me post some files. run_solver.log...
by Tsubasa
Tue Oct 04, 2022 12:39 pm
Forum: code_saturne usage
Topic: Mapped inlet when there are another inlet faces
Replies: 25
Views: 32108

Re: Mapped inlet when there are another inlet faces

Hello, Are these infomation enough for you? subroutine cs_f_user_boundary_conditions & ( nvar , nscal , & icodcl , itrifb , itypfb , izfppp , & dt , & rcodcl ) !=============================================================================== !==========================================...