|
[Sponsors] |
Set boundary value of 1 field equal to another field |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 27, 2016, 15:45 |
Set boundary value of 1 field equal to another field
|
#1 |
Senior Member
Saideep
Join Date: Apr 2015
Location: INDIA
Posts: 203
Rep Power: 12 |
Hi guys;
I am using modified interFOAM solver(Foam-extend 1.6) where I split total pressure(p) into two parts: pd(dynamic pressure) and pc(capillary pressure). So, p = pd + pc. I calculate pc from the surface tension force term equation (surface tension*interface curvature*dirac). Later I compute p from the NSE (in pEqn.H). As I am solving for both the variables I need boundary conditions for both variables pd and pc with ideal case being a zeroGradient for pc (specifying a pcRefCell and pcRefValue) and pd = -pc in order to obtain a fixed value for the total pressure (I would like to have p = 0 at inlet and outlet face boundaries). Can anyone direct me how can I set "pd = -pc" at the inlet and outlet faces in the 0 file? Thanks. |
|
October 28, 2016, 02:34 |
|
#2 |
Senior Member
Join Date: Aug 2013
Posts: 407
Rep Power: 16 |
Hi,
Have you looked at groovyBC? That allows you to set your BC to a custom condition/value. Cheers, Antimony |
|
October 31, 2016, 09:39 |
|
#3 |
Senior Member
Adhiraj
Join Date: Sep 2010
Location: Karnataka, India
Posts: 187
Rep Power: 16 |
Are you solving PDEs for p, pc and pd--all three of them?
Would that not be a problem? |
|
October 31, 2016, 10:58 |
|
#4 |
Senior Member
Saideep
Join Date: Apr 2015
Location: INDIA
Posts: 203
Rep Power: 12 |
Hi Adhiraj,
interFOAM as it is, is not a balanced force model. (that is the capillary pressure gradient and surface tension force do not balance each other leading to spurious currents). So, the way poreFOAM (code from Imperial College by Raeini.et.al.) capillary pressure (pc) is computed as follows: laplacian (pc) = divergence (surface tension force), from found value for pc we try to compute the flux and remove it from the flux due to surface tension. In ideal case it should be 0 but due to interpolations and all it isn't so we try to filter some spurious fluxes generated by a percentage value. Similar to interFoam, we solve for the dynamic pressure (NSE in pEqn.H) and the total pressure is the sum of computed capillary pressure (pc) and dynamic pressure (pd). Saideep |
|
Tags |
boundary variable, split p for 2phase flow |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Radiation in semi-transparent media with surface-to-surface model? | mpeppels | CFX | 11 | August 22, 2019 08:30 |
[Other] dynamicTopoFVMesh and pointDisplacement | RandomUser | OpenFOAM Meshing & Mesh Conversion | 6 | April 26, 2018 08:30 |
[mesh manipulation] Importing Multiple Meshes | thomasnwalshiii | OpenFOAM Meshing & Mesh Conversion | 18 | December 19, 2015 19:57 |
Question about heat transfer coefficient setting for CFX | Anna Tian | CFX | 1 | June 16, 2013 07:28 |
domain imbalance for enrgy equation | happy | CFX | 14 | September 6, 2012 02:54 |