|
[Sponsors] |
March 16, 2015, 02:39 |
volScalarField-->surfaceScalarField
|
#1 |
Member
ali alkebsi
Join Date: Jan 2012
Location: Strasbourg, France
Posts: 82
Rep Power: 14 |
Dear Foamers,
Excuse my naive question, but i have been suffering for a week now trying to do something (considered) trivial. i have a volScalarField that i need to multiply by a surfaceScalarField so i thought all i need is to use the interpolate function as AB=fvc::interpolate(A)*B; A, B, and AB are already defined in creatField.H where A is the volScalarField, where B and AB are surfaceScalarField. my A is initially equal to 1 but then it diminishes to 0 at some points. but the code returns the value of B as if fvc::interpolate(A) is equal to 1 everywhere at everytime step. I think (quite sure) that the problem is with using the function fvc::interpolate(), and not with other parts of the code. Thank you all in advance, |
|
March 18, 2015, 11:25 |
|
#2 |
Member
ali alkebsi
Join Date: Jan 2012
Location: Strasbourg, France
Posts: 82
Rep Power: 14 |
Why no one is trying to answer??? (wrong grammar i know)
Well, in case you wonder, i found the problem. The function interpolate is overloaded in its class where if it is called with a certain type it would return one always but if called with geometricFields it would do the interpolation in the normal way. I wish someone might find this helpfull. thanks for passing by. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[openSmoke] libOpenSMOKE | Tobi | OpenFOAM Community Contributions | 562 | January 25, 2023 09:21 |
using chemkin | JMDag2004 | OpenFOAM Pre-Processing | 2 | March 8, 2016 22:38 |
make a dimensionedScalar to be volScalarField | sharonyue | OpenFOAM Programming & Development | 4 | April 2, 2014 05:44 |
Boundary condition cannot find volScalarField | ChrisA | OpenFOAM Programming & Development | 1 | March 18, 2014 17:17 |
writing execFlowFunctionObjects | immortality | OpenFOAM Post-Processing | 30 | September 15, 2013 06:16 |