CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

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

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 12, 2018, 08:23
Smile 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
shivam_145 is on a distinguished road
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
shivam_145 is offline   Reply With Quote

Old   June 12, 2018, 09:02
Default
  #2
Member
 
Kristjan
Join Date: Apr 2017
Location: Slovenia
Posts: 36
Rep Power: 9
krikre is on a distinguished road
You'll probably have to do something similar to this:


https://openfoamwiki.net/index.php/H...ure_to_icoFoam
krikre is offline   Reply With Quote

Old   June 13, 2018, 10:36
Default
  #3
Senior Member
 
Taher Chegini
Join Date: Nov 2014
Location: Houston, Texas
Posts: 125
Rep Power: 13
Taataa is on a distinguished road
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.
Taataa is offline   Reply With Quote

Old   June 13, 2018, 18:21
Default
  #4
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Quote:
Originally Posted by shivam_145 View Post
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
Tobi is offline   Reply With Quote

Reply

Tags
dissolved oxygen, openfoam, property


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 Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Map of the OpenFOAM Forum - Understanding where to post your questions! wyldckat OpenFOAM 10 September 2, 2021 06:29
OpenFOAM Training Jan-Jul 2017, Virtual, London, Houston, Berlin CFDFoundation OpenFOAM Announcements from Other Sources 0 January 4, 2017 07:15
[OpenFOAM.org] A Mac OS X of23x Development Environment Using Docker rt08 OpenFOAM Installation 1 February 28, 2016 20:00
OpenFOAM Training, London, Chicago, Munich, Sep-Oct 2015 cfd.direct OpenFOAM Announcements from Other Sources 2 August 31, 2015 14:36
Add lagrangian particles to OpenFoam solver luchen2408 OpenFOAM 0 June 2, 2015 04:10


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