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

Creating new variables and modify existing eqn in porousSimpleFoam

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Cyp

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 3, 2015, 06:45
Exclamation Creating new variables and modify existing eqn in porousSimpleFoam
  #1
Member
 
AJAY BHANDARI
Join Date: Jul 2015
Location: INDIA
Posts: 57
Rep Power: 10
AJAY BHANDARI is on a distinguished road
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????
AJAY BHANDARI is offline   Reply With Quote

Old   July 5, 2015, 02:33
Default
  #2
Cyp
Senior Member
 
Cyprien
Join Date: Feb 2010
Location: Stanford University
Posts: 299
Rep Power: 18
Cyp is on a distinguished road
Hi,

This tutorial https://web.stanford.edu/~csoulain/O...G_PART_3v5.pdf

is perfect for what you want to do.

Cheers,
Luttappy likes this.
Cyp is offline   Reply With Quote

Old   July 5, 2015, 06:27
Default
  #3
Member
 
AJAY BHANDARI
Join Date: Jul 2015
Location: INDIA
Posts: 57
Rep Power: 10
AJAY BHANDARI is on a distinguished road
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???
AJAY BHANDARI is offline   Reply With Quote

Old   December 2, 2015, 02:17
Post 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
AJAY BHANDARI is on a distinguished road
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
AJAY BHANDARI is offline   Reply With Quote

Reply


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
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


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