Compilation error when trying to interpolate a dimensionedScalar&
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:
|
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(); |
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 |
All times are GMT -4. The time now is 21:36. |