|
[Sponsors] |
Creating new variables and modify existing eqn in porousSimpleFoam |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 3, 2015, 06:45 |
Creating new variables and modify existing eqn in porousSimpleFoam
|
#1 |
Member
AJAY BHANDARI
Join Date: Jul 2015
Location: INDIA
Posts: 57
Rep Power: 10 |
Hi,
I am begineer to openFoam. I am modelling flow through a body tissue which is considered as a porous media. i have to solve two equations in it basically continuity and momentum eqn(darcy eqn).In the continuity eqn i have to add some source and sink terms. For adding these terms i have to assign the variables like vascular pressure,surface area ,permeability in createfields.h . So, can anybody tell me how to assign these new variables and modify the continuity eqn???? |
|
July 5, 2015, 02:33 |
|
#2 |
Senior Member
Cyprien
Join Date: Feb 2010
Location: Stanford University
Posts: 299
Rep Power: 18 |
Hi,
This tutorial https://web.stanford.edu/~csoulain/O...G_PART_3v5.pdf is perfect for what you want to do. Cheers, |
|
July 5, 2015, 06:27 |
|
#3 |
Member
AJAY BHANDARI
Join Date: Jul 2015
Location: INDIA
Posts: 57
Rep Power: 10 |
Thanks a lot cyprien for your reply...I have added the variables according to that and compiled. I need some more help. I have created a rectangular mesh with 192 elements in x direction and 96 elements in y direction. Its basically a 2D mesh. Now i want to assign porosity values to each cell . How can i do it what should i change in the code and where???
|
|
December 2, 2015, 02:17 |
To assign permeability and porosity values to each cell in the mesh..
|
#4 |
Member
AJAY BHANDARI
Join Date: Jul 2015
Location: INDIA
Posts: 57
Rep Power: 10 |
Hi cyprien,
Tutorial sent by you were quite good and helped me lot. I am again returning to my post here. I had modeled a porous media body tissue in 2D. I had solved continuity and darcy eqn. in it. Now i am solving convection diffusion equation in it. But to solve it i first need to know how can i assign permeability and porosity values to each cell in mesh. I have these values from Matlab. I have to put it in openFoam cell by cell and then simulate.. Any help will be appreciated. Regards Ajay bhandari |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Modify Dynamic smagorinsky LES eqn with additional term | desanga | OpenFOAM Programming & Development | 1 | September 22, 2014 07:51 |
How to modify the Schmidt number in CFX for additional variables model? | rockzh | CFX | 11 | February 10, 2012 20:36 |
How to modify variables in Fluent solver | yizhou | FLUENT | 1 | June 19, 2006 20:00 |