|
[Sponsors] |
February 23, 2017, 13:37 |
Flux boundary condition
|
#1 |
New Member
Ali Charchi
Join Date: Oct 2013
Location: South Carolina, USA
Posts: 8
Rep Power: 12 |
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 |
|
February 25, 2017, 21:51 |
|
#2 |
Senior Member
Bobby
Join Date: Oct 2012
Location: Michigan
Posts: 454
Rep Power: 15 |
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 |
|
February 27, 2017, 10:33 |
|
#3 |
New Member
Ali Charchi
Join Date: Oct 2013
Location: South Carolina, USA
Posts: 8
Rep Power: 12 |
||
February 28, 2017, 14:12 |
|
#4 |
Senior Member
Bobby
Join Date: Oct 2012
Location: Michigan
Posts: 454
Rep Power: 15 |
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 |
|
March 4, 2017, 12:15 |
|
#5 |
Senior Member
Bobby
Join Date: Oct 2012
Location: Michigan
Posts: 454
Rep Power: 15 |
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 |
|
Tags |
flux boundary condition, non-diffusive |
|
|
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 |