# How to add my own property to the fluids in openfoam?

 User Name Remember Me Password
 Register Blogs Members List Search Today's Posts Mark Forums Read

 June 12, 2018, 07:23 How to add my own property to the fluids in openfoam? #1 New Member   Shivam Mittal Join Date: Jun 2018 Posts: 1 Rep Power: 0 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

 June 12, 2018, 08:02 #2 Member   Kristjan Join Date: Apr 2017 Location: Slovenia Posts: 36 Rep Power: 8 You'll probably have to do something similar to this: https://openfoamwiki.net/index.php/H...ure_to_icoFoam

 June 13, 2018, 09:36 #3 Senior Member   Taher Chegini Join Date: Nov 2014 Location: Houston, Texas Posts: 125 Rep Power: 11 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.

June 13, 2018, 17:21
#4
Super Moderator

Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,694
Blog Entries: 6
Rep Power: 50
Quote:
 Originally Posted by shivam_145 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.
__________________
Keep foaming,
Tobias Holzmann

 Tags dissolved oxygen, openfoam, property

 Thread Tools Search this Thread Search this Thread: Advanced Search Display Modes Linear Mode

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On HTML code is OffTrackbacks are Off Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post wyldckat OpenFOAM 10 September 2, 2021 05:29 CFDFoundation OpenFOAM Announcements from Other Sources 0 January 4, 2017 06:15 [OpenFOAM.org] A Mac OS X of23x Development Environment Using Docker rt08 OpenFOAM Installation 1 February 28, 2016 19:00 cfd.direct OpenFOAM Announcements from Other Sources 2 August 31, 2015 13:36 luchen2408 OpenFOAM 0 June 2, 2015 03:10

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

 Contact Us - CFD Online - Privacy Statement - Top