|
[Sponsors] |
October 11, 2010, 14:48 |
autoPtr<incompressible::RASModel>
|
#1 |
New Member
Nadeem
Join Date: Mar 2009
Location: München, Bavarian, Deutschland
Posts: 24
Rep Power: 17 |
Hello everybody,
I am trying to declare RASModel outside main function but its giving me some errors. I compiled the code, there were no errors but i run the code then i get following error. -->Foam FATAL ERROR lookup of RASProperties from object Registry region0 successful but it is not a RASModel, it is a dictionary. How can i get rid of this fatal error. I am trying but still failed to get rid of it. What I did is the following. autoPtr<incompressible::RASModel> RASModel ( incompressible::RASModel::New(U,phi,laminarTranspo rt) ); This is the same way as done in buoyanBoussinesqSimpleFoam. What I am doing is that i am trying to initialize it in some class. Thanks in advance. Best Regards, |
|
October 19, 2010, 03:36 |
|
#2 |
Member
Join Date: Nov 2009
Location: Germany
Posts: 96
Rep Power: 17 |
Hi,
I have no experience with your problem but just found this: Code:
autoPtr<incompressible::RASModel> turbulence ( incompressible::RASModel::New(U, phi, laminarTransport) ); Regards, Toni |
|
October 19, 2010, 09:23 |
|
#3 | |
Senior Member
Stefan Herbert
Join Date: Dec 2009
Location: Darmstadt, Germany
Posts: 129
Rep Power: 18 |
Quote:
Regards, Stefan |
||
October 19, 2010, 09:46 |
|
#4 |
Member
Join Date: Nov 2009
Location: Germany
Posts: 96
Rep Power: 17 |
Hi Stefan,
but then how is it possible I found the following code in yPlusRAS.C ? Code:
singlePhaseTransportModel laminarTransport(U, phi); autoPtr<incompressible::RASModel> RASModel ( incompressible::RASModel::New(U, phi, laminarTransport) ); Regards, Toni |
|
Tags |
autoptr, fatalerror, rasmodel |
|
|