Mapped inlet & temperature field

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
Gen
Posts: 17
Joined: Sat Sep 05, 2020 7:39 am

Mapped inlet & temperature field

Post by Gen »

Dear code_saturne team,

I am using the Mapped Inlet in GUI to define the inlet condition for my LES calculation of a regular pipe.
I only want the velocity field to be fed back but It seems that the temperature field is also mapped.
So I modified the cs_user_boundary_conditions-mapped_inlet.f90., but it didn't work out.

I just want to map the velocity iw, without changing the temperature of the inlet.
Could you help me find out my problem? I guess there might be something wrong with my normalization process, or else.

Any suggestion will be appreciated. Thank you in advance.
Bonne journée,
Gen
Attachments
cs_user_boundary_conditions-mapped_inlet.f90
(9.68 KiB) Downloaded 54 times
Yvan Fournier
Posts: 4070
Joined: Mon Feb 20, 2012 3:25 pm

Re: Mapped inlet & temperature field

Post by Yvan Fournier »

Hello,

You are looping on all fields and applying the mapping to all of them (even for non-solved fields, to which this does not apply),, so that is why the temperature is mapped also.

You need to call boundary_conditions_mapped_set only for the velocity field if you only want the mapped inlet for velocity.

Regards,

Yvan
Gen
Posts: 17
Joined: Sat Sep 05, 2020 7:39 am

Re: Mapped inlet & temperature field

Post by Gen »

Hello Yvan,

Thank you so much.

Best regards,
Gen
Post Reply