Search found 175 matches

by Tsubasa
Thu Jan 20, 2022 1:27 pm
Forum: code_saturne usage
Topic: Free slip boundary condition
Replies: 1
Views: 1848

Free slip boundary condition

Hello,

I would like to know how to impose free slip boundary condition for a wall.
Is it possbile to do that with GUI setting?

Best regards,
Tsubasa
by Tsubasa
Sat Dec 11, 2021 9:38 pm
Forum: code_saturne usage
Topic: Imposing scalar at inlet by user subroutine
Replies: 6
Views: 4609

Re: Imposing scalar at inlet by user subroutine

Hello Yvan, Thank you for that. That was what I wanted to know. Best regards, Tsubasa !!Dirichlet B.C for scalar transport: if(ntcabs ==ntpabs+1)then open (17, file='/home/tsubasa/Desktop/test/course/SRC/inlet_scalar_time_history.csv', status='old') read (17, '()') do i = 1, total_nstep read (17, *)...
by Tsubasa
Fri Dec 10, 2021 5:39 pm
Forum: code_saturne usage
Topic: Imposing scalar at inlet by user subroutine
Replies: 6
Views: 4609

Re: Imposing scalar at inlet by user subroutine

Hello Yvan, Thank you for the advice. I remenbered it. I suceeded to impose time history of scalar value for species at inlet. I put them here, and if you find some mistakes, please let me know. integer i real i_scalar, i_direchlet_scalar real, save :: i_narray(50) ! should be change : total calcula...
by Tsubasa
Fri Dec 10, 2021 1:15 pm
Forum: code_saturne usage
Topic: Imposing scalar at inlet by user subroutine
Replies: 6
Views: 4609

Re: Imposing scalar at inlet by user subroutine

Hello Yvan, Thank you for the advice. You mean if I assign "scalar1" as a name of scalar in GUI like in picture, I should write like this for the first line, right? integer :: f_id, keysca, iscal ... all field_get_id(scalar1, f_id) call field_get_key_id("scalar_id", keysca) call ...
by Tsubasa
Wed Nov 24, 2021 12:18 pm
Forum: code_saturne usage
Topic: Imposing scalar at inlet by user subroutine
Replies: 6
Views: 4609

Imposing scalar at inlet by user subroutine

Hello, Now I want to impose a value for scalar transport at inlet face by cs_user_boundary_conditions.f90, not GUI. Can we impose a value of scalar transport at inlet by cs_user_boundary_conditions.f90? At the same time I am imposing pressure value following the code. However, errors happend when co...
by Tsubasa
Sat Sep 25, 2021 4:05 am
Forum: code_saturne usage
Topic: What is "outgoing flux" for species?
Replies: 1
Views: 1738

What is "outgoing flux" for species?

Hello, Now, I am trying to scalar transport simulation. I impose "1.0" of "Prescribed Value" for inlet condition, and "0.0 (zero)" of "Prescribed (outgoing) flux" for outlet condition. Here I am wondering that what is "Prescribed (outgoing) flux" for...
by Tsubasa
Thu Sep 23, 2021 11:44 am
Forum: code_saturne usage
Topic: Schmidt number in code saturne
Replies: 22
Views: 14112

Re: Schmidt number in code saturne

Hello Yvan, Sorry, I did not understand well about it. I checked Doxygen and now I understood how to access a field, and now I can find different behaviors by each schmidt number. I would like to show the code for someone who want to do same thing. void cs_user_parameters(cs_domain_t *domain) { cs_f...
by Tsubasa
Wed Sep 22, 2021 2:08 pm
Forum: code_saturne usage
Topic: Schmidt number in code saturne
Replies: 22
Views: 14112

Re: Schmidt number in code saturne

Hello, Even if both "Specieas transpiort" and "Thermalmode" are active, I can see that "turbulent_schmidt" is set only for temperature, but not for "scalar1". Key: "alpha_turbulent_flux_id", values per field ---- Key: "turbulent_schmidt", v...
by Tsubasa
Tue Sep 21, 2021 11:01 pm
Forum: code_saturne usage
Topic: Schmidt number in code saturne
Replies: 22
Views: 14112

Re: Schmidt number in code saturne

Hello Yvan, As you said, the simulation worked without error. However, even if I changed Schmidt number from 0.1 to 0.9 by this code void cs_user_parameters(cs_domain_t *domain) { cs_field_set_key_double(CS_F_(t), cs_field_key_id("turbulent_schmidt"), 0.1); } void cs_user_parameters(cs_dom...
by Tsubasa
Tue Sep 21, 2021 7:30 pm
Forum: code_saturne usage
Topic: Schmidt number in code saturne
Replies: 22
Views: 14112

Re: Schmidt number in code saturne

Hello Yvan, No, thermal model is not active. I only set "scalar" in specieas transport. Do I need thermal model? In my case I need turbulent schmidt number (not turbulent Prandtl number) which is related to eddy viscosity and eddy diffusivity. Even though my simulation doesn't take hear in...