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

Implementing a New Boundary Condition

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   May 22, 2007, 10:24
Default Hi all, I am trying to implem
  #1
Member
 
Ivor Clifford
Join Date: Mar 2009
Location: Switzerland
Posts: 94
Rep Power: 17
cliffoi is on a distinguished road
Hi all,
I am trying to implement a new boundary condition for the solution of the neutron diffusion equation. For this problem we have what is commonly called an extrapolated length boundary condition, i.e. the neutron density goes to zero at some distance past the boundary.
I have derived the necessary expressions to be implemented in my extrapolatedLengthFvPatchField class functions (evaluate, gradientInternalCoeffs, etc.) but I'm having problems coding them. I keep getting errors when compiling because the necessary operators aren't found.
This is clearly because I don't know how to code the expressions in such a way that they apply to all the templated types (The sphericalTensor class is in particular giving me problems).
If anybody could help me, I'd really appreciate it.
The gradient at the boundary dF/dx|_B = -1/(deltaX+extrLen)*F_P
The value at the boundary F_B = deltaX/(deltaX+extrLen)*F_P

where
F_P is the cell value (this->internalField())
deltaX is the distance to the boundary (1/deltaCoeffs())
extrLen is the extrapolated length value specified by the user.

Any help would be appreciated.
Thanks in advance
cliffoi is offline   Reply With Quote

 


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
Implementing new oscillating boundary condition chbenz OpenFOAM Running, Solving & CFD 0 February 19, 2009 02:27
Implementing PseudoMass Transfer Boundary Condition rsungkorn OpenFOAM Running, Solving & CFD 0 February 11, 2008 07:28
Problems implementing a boundary condition ogloth OpenFOAM Running, Solving & CFD 3 July 17, 2007 15:36
Implementing boundary condition for LES Linfeng BI Main CFD Forum 2 December 9, 2002 08:58
implementing boundary conditions Andreas Abdon CFX 2 March 15, 2000 13:20


All times are GMT -4. The time now is 06:36.