|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
Ali Charchi
Join Date: Oct 2013
Location: South Carolina, USA
Posts: 8
Rep Power: 13 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Bobby
Join Date: Oct 2012
Location: Michigan
Posts: 454
Rep Power: 16 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#3 |
New Member
Ali Charchi
Join Date: Oct 2013
Location: South Carolina, USA
Posts: 8
Rep Power: 13 ![]() |
||
![]() |
![]() |
![]() |
![]() |
#4 |
Senior Member
Bobby
Join Date: Oct 2012
Location: Michigan
Posts: 454
Rep Power: 16 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#5 |
Senior Member
Bobby
Join Date: Oct 2012
Location: Michigan
Posts: 454
Rep Power: 16 ![]() |
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 |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
My radial inflow turbine | Abo Anas | CFX | 27 | May 11, 2018 02:44 |
Out File does not show Imbalance in % | Mmaragann | CFX | 5 | January 20, 2017 11:20 |
Low torque values on Screw Turbine | Shaun Waters | CFX | 34 | July 23, 2015 09:16 |
Low Mixing time Problem | Mavier | CFX | 5 | April 29, 2013 01:00 |
Implement constant heat flux boundary condition | new_at_this | Main CFD Forum | 2 | April 7, 2012 00:35 |