|
[Sponsors] |
Interpolation of vectors in OpenFOAM version 10 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 5, 2023, 03:26 |
Interpolation of vectors in OpenFOAM version 10
|
#1 |
New Member
Pranav
Join Date: Sep 2023
Posts: 1
Rep Power: 0 |
I want to do interpolation of vectors in OpenFOAM version 10. Please help me through this.
A=B+C where A, B and C are vectors. First I want to interpolate C from cell centre to cell face and then after calculation of B on the cell face and getting the value of A on the cell face. I further want to do interpolation of A from cell face to cell centre. I want to execute this process. What commands shall I use? |
|
September 5, 2023, 06:19 |
|
#2 |
Senior Member
Join Date: Apr 2020
Location: UK
Posts: 736
Rep Power: 14 |
Take a look at some of the solver files - they all involve interpolation of values (scalars and vectors) from cell centre to face centre, and then back again ... the command is surprisingly called interpolate (). For example, in EEqn.H of bouyantPimpleFoam:
Code:
fvc::absolute(phi/fvc::interpolate(rho), U) |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Gmsh] gmshToFoam on openfoam windows version of OpenFOAM v1812? | SihunLee | OpenFOAM Meshing & Mesh Conversion | 0 | June 17, 2019 06:44 |
simpleFoam convergence issue | Harnoor | OpenFOAM Running, Solving & CFD | 13 | November 16, 2016 09:23 |
OpenFOAM v3.0.1 Training, London, Houston, Berlin, Jan-Mar 2016 | cfd.direct | OpenFOAM Announcements from Other Sources | 0 | January 5, 2016 04:18 |
Divergent temperature in chtMultiRegion(Simple)Foam | akrasemann | OpenFOAM Running, Solving & CFD | 13 | March 24, 2014 03:54 |
Cross-compiling OpenFOAM 1.7.0 on Linux for Windows 32 and 64bits with Mingw-w64 | wyldckat | OpenFOAM Announcements from Other Sources | 3 | September 8, 2010 07:25 |