|
[Sponsors] |
January 2, 2007, 13:38 |
Hello all together,
1.) A v
|
#1 |
New Member
Marcus Hüning
Join Date: Mar 2009
Location: Berlin, Berlin, Germany
Posts: 4
Rep Power: 17 |
Hello all together,
1.) A view days ago, I wrote Mattijis an e-mail. I asked him for advice to run the Naca Profile with the SonicTurbFoam Solver. These solver only shows the banner if I run it on my machine (Same Result with other Test Cases). Other Solvers like icoFoam are working. He gave me the tip to use gdb to debug the code. Can Someone give me a brief explanation: How I can do this workmanlike if I don't have experience with that debugger? 2.) I want calculate Rotating Disc Systems. Therefore I have to model a disc with a constant rotating shaft speed. In older discussions I found a code like ... to set the boundary condition (wall speed as function of radius): /****************/ lable patchID = mesh.boundaryMesh().findPatchID(nameofRotatingSurf ace); const fvPatch& cPAtch = mesh.boundaryMesh()[patchID]; const vectorField& faceCenters = cPatch.Cf(); U.boundaryField()[patchID] = some function of face Centers; /****************/ Does anybody know in which *.H file I should implement a code like this? Regards Marcus |
|
January 4, 2007, 12:44 |
Hello all together, hello Matt
|
#2 |
New Member
Marcus Hüning
Join Date: Mar 2009
Location: Berlin, Berlin, Germany
Posts: 4
Rep Power: 17 |
Hello all together, hello Mattijs
a view days ago I posted a question to the massage board about implementing rotating disc surfaces into OpenFoam. I tried to implement the following code into turbFoam.C: /************************************************** **************************/ label patchID = mesh.boundaryMesh().findPatchID("rotor"); const polyPatch& cPatch = mesh.boundaryMesh()[patchID]; forAll(cPatch,facel) { const vector& faceCoord = cPatch.faceCenters(); // line 60 vector faceU(vector::zero); faceU.x() = 0; faceU.y() = 0; faceU.z() = faceCoord.component(1)*1000; U.boundaryField()[patchID][facel] = faceU; } /************************************************** **************************/ I got the error ... turbFoam.C: In function 'int main(int, char**)': turbFoam.C:60: error: 'const class Foam::polyPatch' has no member named 'faceCenters' Does someone knows the structures of the code as good that he directly sees my mistake? Thanks Marcus |
|
January 4, 2007, 19:38 |
Marcus.
Try faceCentres ins
|
#3 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Marcus.
Try faceCentres instead of faceCenters (British English, not American)
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
rotating disc | umesh | FLUENT | 0 | February 21, 2009 02:57 |
rotating disc | umesh | FLUENT | 1 | February 19, 2009 16:52 |
İmpinging jet on rotating disc | majesticc | FLUENT | 0 | April 12, 2006 15:59 |
how the disc spin | h.k.moukhtar | Phoenics | 1 | March 15, 2006 05:41 |
Actuator Disc | Slipstream | FLUENT | 0 | October 30, 2003 21:38 |