|
[Sponsors] |
December 7, 2021, 03:47 |
Excess of internal field of a specific cell
|
#1 |
New Member
Usama Niaz
Join Date: Oct 2019
Location: Pakistan
Posts: 7
Rep Power: 6 |
Hi Foamers,
I am new to OpenFOAM programming, I currently implementing a new boundary condition, in which velocity will be initiated on the patch, using pressure difference. I want to pressure the difference between a patch and an individual cell. For that purpose, I need to extract the pressure of the cell. But I don't know how? I want it to update as the pressure of that cell changes. Can anyone help me with that? The equation I am using is, sqrt(2(P_patch - P_cell)/rho). I come up to DimensionedField<Type, volMesh>& internalField function to access that. Furthermore, can you help me with "this->" pointer why does it use? Thanks |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Foam::error::PrintStack | almir | OpenFOAM Running, Solving & CFD | 91 | December 21, 2022 04:50 |
Set cell volume integrated field values to preserve integral | Diro7 | OpenFOAM Pre-Processing | 2 | June 3, 2018 10:44 |
[mesh manipulation] Importing Multiple Meshes | thomasnwalshiii | OpenFOAM Meshing & Mesh Conversion | 18 | December 19, 2015 18:57 |
Moving mesh | Niklas Wikstrom (Wikstrom) | OpenFOAM Running, Solving & CFD | 122 | June 15, 2014 06:20 |
Cells with t below lower limit | Purushothama | Siemens | 2 | May 31, 2010 21:58 |