|
[Sponsors] |
Compilation error when trying to interpolate a dimensionedScalar& |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 2, 2013, 04:52 |
Compilation error when trying to interpolate a dimensionedScalar&
|
#1 | |
Member
Thomas Vossel
Join Date: Aug 2013
Location: Germany
Posts: 45
Rep Power: 12 |
Hi!
I ran into another problem and don't know what I did wrong when writing my solver... I want to do a fvc::interpolate() command on a dimensionedScalar. The scalar is created similar to the twoPhaseEulerFoam solver: Code:
const dimensionedScalar& rhoa = phasea->rho(); Code:
surfaceScalarField rhoaf = fvc::interpolate(rhoa); Quote:
|
||
October 2, 2013, 07:49 |
|
#2 |
Member
Thomas Vossel
Join Date: Aug 2013
Location: Germany
Posts: 45
Rep Power: 12 |
I think I got closer to the solution. I guess it's not possible to interpolate a dimensionedScalar as its meant for volScalarFields only. As rhoa never shows up alone in an interpolation command of the twoPhaseEulerFoam solver I guess it cancels itself with some other components thus forming a valid interpolate statement...
I also found this definition of rhoa in one of the papers I'm reading: Code:
rhoa = phasea->rho(); |
|
October 5, 2013, 07:07 |
|
#3 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Greetings Thomas,
I didn't manage to properly read your questions, but I read that you mentioned "fvc::interpolate", so perhaps this little example of mine can help: https://github.com/wyldckat/reconstr...rpolate-fields Best regards, Bruno
__________________
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Compilation error for OpenFOAM-ext on Ubantu 10.04 32 bit | Sargam05 | OpenFOAM Installation | 13 | March 22, 2014 05:21 |
Compilation error with OF 2.1.x | GerhardHolzinger | OpenFOAM Installation | 5 | September 18, 2012 09:04 |
Compilation Error (V 1.7.1; Icc 12.1.0, OpenMPI 1.4.3) | floydfan | OpenFOAM Installation | 7 | December 20, 2011 05:56 |
Interpolate in some points | ivan_cozza | OpenFOAM Post-Processing | 2 | April 22, 2009 08:58 |
Compilation Error.... | Arnab | Siemens | 4 | September 12, 2004 15:54 |