CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

Rotating Disc Systems with SonicTurbFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 2, 2007, 13:38
Default 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
mhuening is on a distinguished road
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
mhuening is offline   Reply With Quote

Old   January 4, 2007, 12:44
Default Hello all together, hello Matt
  #2
New Member
 
Marcus Hüning
Join Date: Mar 2009
Location: Berlin, Berlin, Germany
Posts: 4
Rep Power: 17
mhuening is on a distinguished road
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
mhuening is offline   Reply With Quote

Old   January 4, 2007, 19:38
Default Marcus. Try faceCentres ins
  #3
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
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
gschaider is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 21:27.