|
[Sponsors] |
can I access to the "dict" object from codeWrite in a coded function object? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 22, 2021, 09:12 |
can I access to the "dict" object from codeWrite in a coded function object?
|
#1 |
Senior Member
ONESP-RO
Join Date: Feb 2021
Location: Somwhere on Planet Earth
Posts: 127
Rep Power: 5 |
Hello,
In a coded function object, I can access the "dict" object from within the codeRead section. However, this object is not available in the codeWrite section. Is it possible to access this object without manually creating the dictionary manually. Code:
mfunc { type coded libs ("libutilityFunctionObjects.so"); name example; codeRead #{ // the object 'dict' is available here. #}; codeWrite #{ // but I can't access it here. How can I access that object? // I have tried: this->dict but it doesn't work. #}; } Thank you |
|
October 28, 2021, 15:53 |
|
#2 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40 |
Quote:
That got added into the OpenFOAM-v2106 release - see the merge-request information for the related commits. https://develop.openfoam.com/Develop...ts/466/commits Note that it uses 'this->codeContext()' to access the dictionary in question (or at least part of it). If you run into bugs, open an issue on develop.openfoam.com to discuss there. |
||
October 28, 2021, 19:46 |
|
#3 |
Senior Member
ONESP-RO
Join Date: Feb 2021
Location: Somwhere on Planet Earth
Posts: 127
Rep Power: 5 |
Thank you for the answer. I have to upgrade to that latest version. Very exciting.
|
|
Tags |
coded function object, functionobjects, openfoam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ParaView for OF-1.6-ext | Chrisi1984 | OpenFOAM Installation | 0 | December 31, 2010 07:42 |
Version 15 on Mac OS X | gschaider | OpenFOAM Installation | 113 | December 2, 2009 11:23 |
Compilation error OF1.5-dev on Suse10.3 | darenyang | OpenFOAM Installation | 0 | April 29, 2009 05:55 |
Compilation errors in ThirdPartymallochoard | feng_w | OpenFOAM Installation | 1 | January 25, 2009 07:59 |
[blockMesh] BlockMeshmergePatchPairs | hjasak | OpenFOAM Meshing & Mesh Conversion | 11 | August 15, 2008 08:36 |