CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   change node or cell x, y, z values during simulation (https://www.cfd-online.com/Forums/fluent-udf/174634-change-node-cell-x-y-z-values-during-simulation.html)

shenh July 15, 2016 16:22

change node or cell x, y, z values during simulation
 
We are trying to model pits formation along a water pipe that are caused by corrosion. We have developed equations on what the pit depth will be with time. Can anyone kindly suggest how to model these pits? My initial idea is at each time step to edit node or cell x, y, z values to model these pits.

I know node_x and node_y is accessible in UDF. But are they read only? Some examples would be greatly appreciated.

Thanks

Hailiang

AHF July 18, 2016 09:58

Quote:

Originally Posted by shenh (Post 609731)
We are trying to model pits formation along a water pipe that are caused by corrosion. We have developed equations on what the pit depth will be with time. Can anyone kindly suggest how to model these pits? My initial idea is at each time step to edit node or cell x, y, z values to model these pits.

I know node_x and node_y is accessible in UDF. But are they read only? Some examples would be greatly appreciated.

Thanks

Hailiang

Hi
if you want to reposition the nodes , you can do it by :
NODE_X(v) = (the position that you want) ;


All times are GMT -4. The time now is 02:02.