|
[Sponsors] |
Velocity output at face centers (instead of cell centers) |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 2, 2018, 03:50 |
Velocity output at face centers (instead of cell centers)
|
#1 |
New Member
Join Date: Apr 2018
Posts: 2
Rep Power: 0 |
If I understand correctly with FVM CFD the velocities (fluxes) are computed at face centers while pressures are defined in the cell centers (so as to avoid checkerboard effects).
The output from OpenFOAM however is only cell centered, I wonder if it somehow possible to extract the un-interpolated (raw) face centered velocity vector instead of an interpolated cell centered one? |
|
April 4, 2018, 18:54 |
|
#2 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,747
Rep Power: 66 |
The face fluxes are interpolated.
The fluxes are the phi field. In many solvers, if you include a phi file at the start it will write it thereafter (just like rho). If you have an incompressible solver then the phi is the velocity. If compressible you have to calculate the velocity from phi/rho but the rho must be interpolated. Here is an function object that writes the rho and phi fields. Alternatively you can also go to createFields.H in the solver, change the autoWrite and recompile. Do you want the fluxes or the face velocities? Because it differs by the face area. Last edited by LuckyTran; April 6, 2018 at 14:46. |
|
February 17, 2020, 10:00 |
|
#3 |
New Member
SOURAV GANGULI
Join Date: Dec 2018
Posts: 11
Rep Power: 7 |
Hello guys,
I able to print the phi value for eaxh writing time step in pisoFoam. But can you please tell me whether is there any direct way to calculate phi per unit cell area ? |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[ICEM] Error in mesh writing | helios | ANSYS Meshing & Geometry | 21 | August 19, 2021 15:18 |
[simpleFoam] Floating point exception | seuchsy | OpenFOAM Running, Solving & CFD | 3 | November 3, 2016 10:29 |
How to use "translation" in solidBodyMotionFunction in OpenFOAM | rupesh_w | OpenFOAM Running, Solving & CFD | 5 | August 16, 2016 05:27 |
Output cell face area from all patches | niko0807 | OpenFOAM Programming & Development | 1 | October 23, 2015 10:03 |
[blockMesh] BlockMeshmergePatchPairs | hjasak | OpenFOAM Meshing & Mesh Conversion | 11 | August 15, 2008 08:36 |