Error using lookupObject()
Hi everyone,
I am working on a modified Version of the PaSR combustion model. In that I need to access a volScalarField which is being generated by my solver called "f". I am trying to do this using the code Code:
const volScalarField& F = this->mesh().lookupObject<volScalarField>("f"); Code:
Error: Expected primary-expression before ">" token Thank you very much! |
Check that you have "volFields.H" included somewhere, it could be that it simply does not know what volScalarField is in your chunk of code.
|
Quote:
PaSR combustion model allready uses references to other volScalarFields, but those are stored in the turbulence model and can be accessed differently. |
Ok, I seemingly managed to solve the problem.
When I change the code to Code:
const volScalarField& F = this->mesh().objectRegistry::lookupObject<volScalarField>("f"); https://www.cfd-online.com/Forums/op...tionality.html I still don't understand the issue, as my C++ knowledge is very slim, but maybe this helps others who encounter this problem. |
All times are GMT -4. The time now is 04:02. |