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

volScalarField-->surfaceScalarField

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 1 Post By kebsiali
  • 2 Post By kebsiali

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 16, 2015, 02:39
Question volScalarField-->surfaceScalarField
  #1
Member
 
ali alkebsi
Join Date: Jan 2012
Location: Strasbourg, France
Posts: 82
Rep Power: 14
kebsiali is on a distinguished road
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,
the_ichthyologist likes this.
kebsiali is offline   Reply With Quote

Old   March 18, 2015, 11:25
Thumbs up
  #2
Member
 
ali alkebsi
Join Date: Jan 2012
Location: Strasbourg, France
Posts: 82
Rep Power: 14
kebsiali is on a distinguished road
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.
the_ichthyologist and Y.H like this.
kebsiali 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
[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


All times are GMT -4. The time now is 20:02.