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.
openfoamer
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
Best regards,
Alexey
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
Best regards,
Alexey
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Foamers,
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.
openfoamer
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.
Best regards,
Alexey
Hi there,
We have advanced existing pythonFlu wrapping definition to cover this operator functionality.
Corresponding sources are available at :
- http://github.com/alexey4petrov/confFlu
- http://github.com/asimurzin/managedFlu
- http://github.com/alexey4petrov/pythonFlu
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
Best regards,
Alexey