Search found 106 matches

by Jundi He
Thu Apr 05, 2018 3:58 pm
Forum: code_saturne usage
Topic: Question about the mapped inlet subroutine
Replies: 16
Views: 10060

Re: Question about the mapped inlet subroutine

Hi Yvan:

Yes, I've run for several thousand iterations, from the monitoring point, the values are converge and stay constant. But still, the outlet and inlet velocity field is different. I guess there are some problems in my subroutine.

Regards!
Jundi
by Jundi He
Tue Apr 03, 2018 11:24 am
Forum: code_saturne usage
Topic: Question about the mapped inlet subroutine
Replies: 16
Views: 10060

Re: Question about the mapped inlet subroutine

Hi Yvan:

The result doesn't meet my expect, I've checked the outlet and inlet velocity contour, and they are total different, I have exactly the same mesh at the outlet and the inlet, it seems that Code Saturne did not copy the outlet velocity field to the inlet.

Regards!
Jundi
by Jundi He
Tue Mar 27, 2018 5:35 pm
Forum: code_saturne usage
Topic: Question about the mapped inlet subroutine
Replies: 16
Views: 10060

Re: Question about the mapped inlet subroutine

Hi:

Sorry that I forgot to include the subroutine, this is the mapped inlet subroutine that I used.

Regards!
Jundi
by Jundi He
Tue Mar 27, 2018 3:15 pm
Forum: code_saturne usage
Topic: Question about the mapped inlet subroutine
Replies: 16
Views: 10060

Question about the mapped inlet subroutine

Hi Code Saturne develop team: I am simulating a vertical channel downward flow with inlet at the top face (named "top") and outlet at the bottom face (named "bot"), the turbulence model I am using is the k-omega SST model. At each iteration, I need to copy the outlet face (named ...
by Jundi He
Tue Jan 09, 2018 2:24 pm
Forum: code_saturne usage
Topic: How to define the inlet turbulence quantities by subroutine?
Replies: 6
Views: 2917

Re: How to define the inlet turbulence quantities by subrout

Hi Yvan: This is my mapped inlet subroutine. For the turbulence quantities (I am using k-omega model), I set the normalize = 0, for other fields, I set the normalize = 1, to ensure the same mean value at the inlet and outlet. For temperature, I set normalize = 0, then subtract the increase of bulk t...
by Jundi He
Sat Jan 06, 2018 7:01 pm
Forum: code_saturne usage
Topic: How to define the inlet turbulence quantities by subroutine?
Replies: 6
Views: 2917

Re: How to define the inlet turbulence quantities by subrout

Hi, I've use the mapped inlet subroutine to carried out a test channel flow, with the inlet from the top surface and the outlet at the bottom surface, constant wall heat flux was impose at the wall. For the velocity and the turbulence quantities, I directly copy the field form the outlet surface and...
by Jundi He
Wed Jan 03, 2018 6:26 pm
Forum: code_saturne usage
Topic: How to define the inlet turbulence quantities by subroutine?
Replies: 6
Views: 2917

Re: How to define the inlet turbulence quantities by subrout

Hi Yvan: No, I will copy the outlet velocity field, turbulence quantity fields, but for the temperature field, I need to do some calculation then impose the result at the inlet, so better to use the subroutine, first to read the outlet surface information, then impose them to the inlet surface. Do y...
by Jundi He
Tue Jan 02, 2018 4:41 pm
Forum: code_saturne usage
Topic: How to define the inlet turbulence quantities by subroutine?
Replies: 6
Views: 2917

How to define the inlet turbulence quantities by subroutine?

Hi Code Saturne develop team: I have a simulation of a simple channel flow, in the simulation, I need to copy the outlet informations (velocity field, temperature field, turbulence quantity fields) to define the inlet condition. Firstly, I should know how to define the inlet boundary conditions by t...
by Jundi He
Fri Dec 22, 2017 7:18 pm
Forum: code_saturne usage
Topic: How to access to the mass flow of a cross section?
Replies: 17
Views: 6896

Re: How to access to the mass flow of a cross section?

Luciano:

Thanks for the help! Yes I should initialize the total mass flow rate at the begin, and then calculate the summation. Many thanks!

Regards!
Jundi
by Jundi He
Tue Dec 19, 2017 12:27 pm
Forum: code_saturne usage
Topic: How to access to the mass flow of a cross section?
Replies: 17
Views: 6896

Re: How to access to the mass flow of a cross section?

Luciano: Should I obtain and output the total mass flow (of a cross section) like this: call field_get_key_int(ivarfl(ivar), kimasf, iflmas) call field_get_val_s(iflmas, imasfl) do ifac = 1, nfac z_coord=cdgfac(3,ifac) if(z_coord .gt. 0.00424 .and. z_coord .lt. 0.00426)then totalmassflow = totalmass...