CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLOW-3D (https://www.cfd-online.com/Forums/flow-3d/)
-   -   Custom mometum source term / modifying solidification drag eqn (https://www.cfd-online.com/Forums/flow-3d/244255-custom-mometum-source-term-modifying-solidification-drag-eqn.html)

carl_r July 29, 2022 18:42

Custom mometum source term / modifying solidification drag eqn
 
Hi,
In Flow3D the solidification flow attenuation is undertaken by ramping the viscosity and applying a drag term. Details in the mannual.

How can I modify the equation used for the drag term or create my own momentum source term to replace the drag function?

I'd be happy to turn off the solidification model and create my own by controlling viscosity, latent heat, and applying a momentum source term. I just can't work out how to create a momentum source term dependent on solid fraction/temperature.


- I can modify the viscosity ramp via the mucal.F90 user function
- I can implement the latent heat via modifying the Cp curve
- I can't currently work out how to modify the drag term, or recreate it as a sub-routine
- I see there are mass source user sub-routine, but I don't see a momentum one


Any thoughts or suggestions?


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