Page 1 of 1

Visit cell coordinate when define the physical properties

Posted: Mon Oct 23, 2017 8:14 pm
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

Re: Visit cell coordinate when define the physical propertie

Posted: Tue Oct 24, 2017 3:07 pm
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