|
[Sponsors] |
Accessing field values with in a dynamic mesh motion class |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 1, 2015, 07:45 |
Accessing field values with in a dynamic mesh motion class
|
#1 |
Member
Join Date: May 2014
Posts: 31
Rep Power: 12 |
Hello,
Can some one please tell me how to access field values (for example p & U) from with in a dynamic mesh motion class? I tried, const volVectorField& U = db().lookupObject<volVectorField>("U"); But it produced the following error. db was not declared in this scope. Can some one please tell me the lines of code to use in order to call a field variable to the class. Thanks, kcn |
|
July 14, 2015, 11:43 |
|
#2 |
Senior Member
Hassan Kassem
Join Date: May 2010
Location: Germany
Posts: 242
Rep Power: 18 |
It is not clear which class you mean.
But if db() is declared and there is no reference to objectRegistry, you can use IOdictionary or mesh or time to get reference to objectRegistry if available. |
|
July 21, 2015, 01:52 |
|
#3 |
Member
Join Date: May 2014
Posts: 31
Rep Power: 12 |
Thanks Hassan. I managed to access them through mesh.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Dynamic mesh using profile | sanjeetlimbu | Fluent Multiphase | 3 | April 19, 2018 10:49 |
Error about inversePointDistance option of diffusivity for dynamic mesh motion | mechy | OpenFOAM | 0 | August 16, 2013 16:56 |
Polynomial Dynamic Mesh Motion | AVK | Fluent UDF and Scheme Programming | 1 | March 27, 2009 10:51 |
UDF, dynamic mesh motion | phil | FLUENT | 0 | September 15, 2004 06:42 |
Dynamic mesh motion | Karthick | FLUENT | 5 | July 15, 2004 03:33 |