The following code works in C++, but not in PythonFlu:
p0 = man.uniformDimensionedVectorField( … )
mesh.C() - p0
TypeError: unsupported operand type(s) for -: 'smart_tmp_volVectorField' and 'uniformDimensionedVectorFieldHolder'
What I want to do: Add hydrostatic pressure to my solution for postprocessing with this formula (works in C++): ((mesh.C()-p0)&g) + p
Thanks for your help.
Sorry for the long delay.
Yes, we recognize this limitation and ready to provide a patched pythonFlu binaries.
Could you precise which Ubuntu and OpenFOAM versions you are using?
If you are not an Ubuntu guy we can deliver an updated sources for you as well.
We have advanced existing pythonFlu wrapping definition to cover this operator functionality.
Corresponding sources are available at :
If an recent Ubuntu version is used, corresponding binary pythonFlu package can installed straightforward from launchpad. For more details look at - http://pythonflu.wikidot.com/new-install-binaries
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.