Visit cell coordinate when define the physical properties

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
Jundi He
Posts: 106
Joined: Fri Jan 13, 2017 3:23 pm

Visit cell coordinate when define the physical properties

Post by Jundi He »

Hi all:

I have a simple question. When I use Code Saturne, I use the GUI and define the fluid conductivity as variable, and I need to input the expression in the Mathematical expression editor. Can I visit the cell coordinate if I need to define the local conductivity at some special positions? Many thanks!

Best Regards!
Jundi He
Luciano Garelli
Posts: 284
Joined: Fri Dec 04, 2015 1:42 pm

Re: Visit cell coordinate when define the physical propertie

Post by Luciano Garelli »

Hello,

If you need to define a variable thermal conductivity in the domain (k(x,y,z)), you can't do it trough the MEI because you can't access to the cells coordinates. Will be useful in a future version of CS have access to the cells coordinate, like in the initialization.

But you can use subroutine usphyv(), (check the cs_user_physical_properties.f90 in the REFERENCE directory and also in the doxygen), to access to the diffusivity (kivisl) and to the cells centers (xyzcen(i, iel)).

Regards,

Luciano
Post Reply