CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Interpolation of vectors in OpenFOAM version 10

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 5, 2023, 03:26
Default Interpolation of vectors in OpenFOAM version 10
  #1
New Member
 
Pranav
Join Date: Sep 2023
Posts: 1
Rep Power: 0
Pranav_896 is on a distinguished road
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?
Pranav_896 is offline   Reply With Quote

Old   September 5, 2023, 06:19
Default
  #2
Senior Member
 
Join Date: Apr 2020
Location: UK
Posts: 736
Rep Power: 14
Tobermory will become famous soon enough
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)
You'll need to do some digging to find the right one for you, but check out the Doxygen pages.
Tobermory is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 04:51.