CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   How to add my own property to the fluids in openfoam? (https://www.cfd-online.com/Forums/openfoam/202925-how-add-my-own-property-fluids-openfoam.html)

shivam_145 June 12, 2018 07:23

How to add my own property to the fluids in openfoam?
 
Hello,
I am working on a project where i need to show simulation of dirty water coming from a source and dumping it into a river(openFOAM is to be used). So here i want to show how the properties of river water changes when dirty water is dumped into the river like- salinity ,dissolved oxygen, turbidity etc.


I need to make something like this: https://www.youtube.com/watch?v=0K2QBjFS5VM but as in this video we can see how temperature and velocity changes , so can we add our own properties?

Thanks in advance

krikre June 12, 2018 08:02

You'll probably have to do something similar to this:


https://openfoamwiki.net/index.php/H...ure_to_icoFoam

Taataa June 13, 2018 09:36

First you'd have to find a suitable solver that includes most of the governing equations of the desired parameters. The remaining terms can be added to the solver, as mentioned by krikre, based on their valid mathematical definition and equation. If you're new to OF keep in mind that changing a solver is not a trivial task.

Tobi June 13, 2018 17:21

Quote:

Originally Posted by shivam_145 (Post 695609)
I need to make something like this: https://www.youtube.com/watch?v=0K2QBjFS5VM but as in this video we can see how temperature and velocity changes , so can we add our own properties?

Sure. You can do what ever you want. E.g. to show the temperature distribution one could use a passive scalar if the temperature is mainly transported by advection and it does not influence the flow (based on e.g. buoyancy). If you have your properties, they should follow a law. For concentrations I expect that that these quantity does not influence the momentum thus, I would model it as a passive scalar for example.

However, if the quantity you want to solve is based on other phenomena such as gravity, drag forces etc. you have to change the equation and add the source terms. In addition, if the quantity influences the flow (momentum) you have to couple them.


Good luck.


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