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

problem of implementing a new solver with a special boundary condition

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 27, 2015, 09:24
Default problem of implementing a new solver with a special boundary condition
  #1
New Member
 
nemo
Join Date: Jan 2015
Posts: 26
Rep Power: 11
huyidao is on a distinguished road
I want to solve this equation ,in which U, a and Q are already known. In the equation there is only a convection term. I use this to calculate the distribution of C in a pipe, it has a special boundary condition C(r=inlet)=b*C(r=outlet),of which b is a constant.
My code is:
Quote:
fvm::div(phi,C)+fvm::Sp(a,C)=Q
My question:
1:Is there a boundary condition C(r=inlet)=b*C(r=outlet) in openFoam?
2: If not, I plan to solve this equation iteratively. First, assume C(r=inlet)=0,then the C(r=outlet) is calculated, then the C(r=inlet) is calculated by C(r=inlet) =b*C(r=outlet),do it until converges. Because according to my knowledge, this is a hyperbolic equation which means it can be solved only by the inlet condition, but in openFoam all the boundary must be given a boundary condition. Then what boundary condition should I define at the outlet of the pipe?
Can anyone give me some advice?
Thank you.
huyidao 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
Outlet boundary condition for wave flume with interFoam solver Arnoldinho OpenFOAM 9 July 10, 2018 06:15
Question about heat transfer coefficient setting for CFX Anna Tian CFX 1 June 16, 2013 07:28
CFX fails to calculate a diffuser pipe flow shenying0710 CFX 7 March 26, 2013 05:13
inletOutlet boundary condition problem siddharameshwara OpenFOAM Running, Solving & CFD 2 February 16, 2011 12:01
Implementing PseudoMass Transfer Boundary Condition rsungkorn OpenFOAM Running, Solving & CFD 0 February 11, 2008 08:28


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