|
[Sponsors] |
Extracting cell centre values WITHOUT interpolation |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 17, 2013, 23:35 |
Extracting cell centre values WITHOUT interpolation
|
#1 |
New Member
Aaron
Join Date: Mar 2013
Posts: 10
Rep Power: 13 |
I would like to extract cell centre values without using any interpolation schemes. My sampleDict file is as follows:
PHP Code:
PHP Code:
PHP Code:
Using nPoints 50; gives me the following temperature plot. As you can see, towards the end of the domain the sample points from my solution are more noticeably clustered in pairs. |
|
August 18, 2013, 00:39 |
|
#2 |
New Member
Aaron
Join Date: Mar 2013
Posts: 10
Rep Power: 13 |
I believe I have solved my problem. Here is the sampleDict with modifications:
Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.2.1 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; location "system"; object sampleDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // interpolationScheme cell; setFormat raw; sets ( centrePatch { type midPoint; axis x; start ( 0 0 0 ); end ( 8.11734270322 0 0 ); } ); fields ( Ux p T ); // ************************************************************************* // Code:
type midPoint; I still have the issue of 'clustered' pairs of temperature points and am not sure what is causing that, though they now much more closely match the theoretical predication. Is this something I should even be looking into? Plots for Pressure, Density, and Mach number do not have this issue (or if they do it much, much less obvious). |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calculate Cell Centre to Cell Face Distances | iamed18 | OpenFOAM Programming & Development | 16 | May 27, 2022 03:08 |
Setting cell variable values in a fluid zone using UDF | eromon84 | Fluent UDF and Scheme Programming | 6 | March 28, 2021 11:59 |
Cell face values computation un unstructured grids | Sergio Rossi | Main CFD Forum | 2 | May 28, 2006 10:04 |
Interpolation for ghost cell help | zonexo | Main CFD Forum | 0 | March 11, 2006 20:03 |
interpolation from cell center to vertices | Zhang | Main CFD Forum | 3 | August 22, 2003 07:31 |