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

Flux boundary condition

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 23, 2017, 13:37
Default Flux boundary condition
  #1
New Member
 
Ali Charchi
Join Date: Oct 2013
Location: South Carolina, USA
Posts: 8
Rep Power: 12
alicharchi is on a distinguished road
Dear all,
I am solving electron continuity equation and need to assign a kind of flux boundary condition for some patches. This flux itself is a function of several other parameters.
My problem is that this flux is not diffusive and I can not relate it to gradient and use mixed type BC.
Is there a way for directly assigning flux boundary condition in OF? I know that in basic finite volume it is a straightforward task.

Thanks,
Ali
alicharchi is offline   Reply With Quote

Old   February 25, 2017, 21:51
Default
  #2
Senior Member
 
Bobby
Join Date: Oct 2012
Location: Michigan
Posts: 454
Rep Power: 15
babakflame is on a distinguished road
Ali,

Can you give a little more description of the BC formula?

this link will help you type in latex:
Guide: Writing Equations in LaTeX on the CFD Online Forums

If its a Robin type boundary condition follow this link:
http://www.modlab.lv/docs/2011/OpenF...Vilums_pdf.pdf

Regards
babakflame is offline   Reply With Quote

Old   February 27, 2017, 10:33
Default
  #3
New Member
 
Ali Charchi
Join Date: Oct 2013
Location: South Carolina, USA
Posts: 8
Rep Power: 12
alicharchi is on a distinguished road
Babak,
This is the expression for the flux:
\Gamma_{e} = - \mu_{e} N_{e} \overrightarrow{E} - \frac{1}{4} N_{e} v_{th,e}
Where
\Gamma_{e} is the flux
\mu_{e} is the electron mobility
N_{e} is the electron number density
\overrightarrow{E} is the electric field
and v_{th,e} is the thermal velocity

I am looking for a way to directly assign the flux instead of expressing it as a function of gradient.
alicharchi is offline   Reply With Quote

Old   February 28, 2017, 14:12
Default
  #4
Senior Member
 
Bobby
Join Date: Oct 2012
Location: Michigan
Posts: 454
Rep Power: 15
babakflame is on a distinguished road
Ali,

At the moment I am working on sth very similar to yours. I am looking at $Foam_SRC files to get an idea.
I will share my findings with you.

Regards
babakflame is offline   Reply With Quote

Old   March 4, 2017, 12:15
Default
  #5
Senior Member
 
Bobby
Join Date: Oct 2012
Location: Michigan
Posts: 454
Rep Power: 15
babakflame is on a distinguished road
Ali,

what you can do in these situations is redefining your boundary condition in your solver , i.e. for instance when your code sees a specific patch name or specific boundary type, assign a predefined boundary condition for that patch. This is done through refCast<> template in OpenFOAM. I have written a snippet for it which still casts error, However this is the approach I am aware of.

You can find it here:Snippet for redefining fixedGradient boundary condition for a patch inside solver

Regards
babakflame is offline   Reply With Quote

Reply

Tags
flux boundary condition, non-diffusive


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
My radial inflow turbine Abo Anas CFX 27 May 11, 2018 01:44
Out File does not show Imbalance in % Mmaragann CFX 5 January 20, 2017 10:20
Low torque values on Screw Turbine Shaun Waters CFX 34 July 23, 2015 08:16
Low Mixing time Problem Mavier CFX 5 April 29, 2013 00:00
Implement constant heat flux boundary condition new_at_this Main CFD Forum 2 April 6, 2012 23:35


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