|
[Sponsors] |
Accessing field values with in a dynamic mesh motion class |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#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 |
|
![]() |
![]() |
![]() |
![]() |
#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. |
|
![]() |
![]() |
![]() |
![]() |
#3 |
Member
Join Date: May 2014
Posts: 31
Rep Power: 12 ![]() |
Thanks Hassan. I managed to access them through mesh.
|
|
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Dynamic mesh using profile | sanjeetlimbu | Fluent Multiphase | 3 | April 19, 2018 09:49 |
Error about inversePointDistance option of diffusivity for dynamic mesh motion | mechy | OpenFOAM | 0 | August 16, 2013 15:56 |
Polynomial Dynamic Mesh Motion | AVK | Fluent UDF and Scheme Programming | 1 | March 27, 2009 09:51 |
UDF, dynamic mesh motion | phil | FLUENT | 0 | September 15, 2004 05:42 |
Dynamic mesh motion | Karthick | FLUENT | 5 | July 15, 2004 02:33 |