|
[Sponsors] |
June 14, 2006, 04:52 |
Hello,
I'm trying to access t
|
#1 |
Member
Fabian Peng Karrholm
Join Date: Mar 2009
Posts: 61
Rep Power: 17 |
Hello,
I'm trying to access the dragmodel of the spray, when I'm in the spray class (more precisely I'm in sprayFunctions.H). I have written a member function which has parcel and cell as input. To access mass of droplet for instance, I just did: parceli.m(); but I have had problems accessing the Cd function of the dragModel class. I don't think I should need to initialize it, since that should have been made in the constructor of spray? I typed scalar Cd = drag_.Cd(ReynoldsNumber,fraction); but then I get: error: 'const class Foam::autoPtr<foam::dragmodel>' has no member named 'Cd' What can I do about this? /Fabian |
|
June 14, 2006, 09:16 |
If someone is interested, I fo
|
#2 |
Member
Fabian Peng Karrholm
Join Date: Mar 2009
Posts: 61
Rep Power: 17 |
If someone is interested, I found out that it's done by:
scalar CD = (*this).drag().Cd(ReDrop,0.0); /Fabian |
|
June 14, 2006, 09:20 |
Or a bit prettier:
scalar C
|
#3 |
Senior Member
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,906
Rep Power: 33 |
Or a bit prettier:
scalar CD = this->drag().Cd(ReDrop,0.0); Hrv
__________________
Hrvoje Jasak Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Access private data member | lr103476 | OpenFOAM Running, Solving & CFD | 3 | May 5, 2018 21:44 |
Accessing member functions of class cell | jaswi | OpenFOAM Running, Solving & CFD | 6 | August 26, 2008 17:34 |
FoamPtrList%2360FoamcoordSet%e2%80%99 has no member named %e2%80%98hook%e2%80%99 | msrinath80 | OpenFOAM Installation | 0 | August 14, 2007 15:13 |
Re: Interested in being a member for Wiki | Navraj Hanspal | CFD-Wiki | 1 | April 12, 2006 19:10 |
Accessing function definitions for UDF | Karl | FLUENT | 2 | February 14, 2002 08:29 |