CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Post-Processing

Forces to be written in different patches

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By tomf

Reply
 
LinkBack Thread Tools Display Modes
Old   January 29, 2013, 12:16
Default Forces to be written in different patches
  #1
New Member
 
Sha Huang
Join Date: Dec 2012
Posts: 22
Rep Power: 4
Joanna Huang is on a distinguished road
Hi Foamers:
I am calculating the forces of a train.stl cases, it contains different patches like bogie, pantagraph, coach body, etc. I want to export the forces of different patches, so I write all the patches in the forces function file, but it does not work, the forces.dat file are alway the total forces, Can anyone help me with this, Thank you so much for that.
Joanna Huang is offline   Reply With Quote

Old   January 29, 2013, 12:27
Default
  #2
New Member
 
Sha Huang
Join Date: Dec 2012
Posts: 22
Rep Power: 4
Joanna Huang is on a distinguished road
the OF version i used is v2.1.1
Joanna Huang is offline   Reply With Quote

Old   January 30, 2013, 05:33
Default
  #3
Senior Member
 
Tom Fahner
Join Date: Mar 2009
Location: Delft, Netherlands
Posts: 224
Rep Power: 10
tomf is on a distinguished road
Send a message via MSN to tomf Send a message via Skype™ to tomf
Hi Joanna,

You can get multiple versions of the forces by just making more forces entries in the controlDict. The example below gives you different folders, in this case:

Total, Body, pantagraph. Of course you have to put in the correct patch names for all the different parts.

Code:
    Total //name of output folder     
    {      type forces;
            functionObjectLibs ("libforces.so");
            patches //includes the contributions of these patches         
            (
               Patch1 Patch2 Patch3
            );         
            rhoName         rhoInf;
            pName             p;
            rhoInf          1.225;
            CofR            (0 0 0);         
            outputControl   timeStep;         
            outputInterval  1;
     }
    pantagraph //name of output folder     
    {      type forces;
            functionObjectLibs ("libforces.so");
            patches //includes the contributions of these patches         
            (
               pantagraph
            );         
            rhoName         rhoInf;
            pName             p;
            rhoInf          1.225;
            CofR            (0 0 0);         
            outputControl   timeStep;         
            outputInterval  1;
     }
    Body //name of output folder     
    {      type forces;
            functionObjectLibs ("libforces.so");
            patches //includes the contributions of these patches         
            (
               coachBody
            );         
            rhoName         rhoInf;
            pName             p;
            rhoInf          1.225;
            CofR            (0 0 0);         
            outputControl   timeStep;         
            outputInterval  1;
     }
Regards,
Tom
FrankFlow likes this.

Last edited by tomf; January 30, 2013 at 05:36. Reason: improved typestting layout
tomf is offline   Reply With Quote

Old   January 30, 2013, 06:20
Default
  #4
New Member
 
Sha Huang
Join Date: Dec 2012
Posts: 22
Rep Power: 4
Joanna Huang is on a distinguished road
Hi Tom:

Thank you so much for that. I will try that.
Joanna Huang is offline   Reply With Quote

Old   February 4, 2013, 11:44
Default
  #5
Senior Member
 
stephane sanchi
Join Date: Mar 2009
Posts: 300
Rep Power: 9
openfoam_user is on a distinguished road
Hi Joanna,

can you upload some pictures (mesh, pressure contours, streamlines, ...) of your work about train aerodynamics ?

Best regards,
Stephane.
openfoam_user is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Forces on multiple patches in InterDyMFoam Claudio OpenFOAM Post-Processing 2 February 6, 2013 18:08
Forces for airfoil test case Martin_ OpenFOAM Running, Solving & CFD 1 July 2, 2012 11:58
Forces printout for multiple patches ozzythewise OpenFOAM Pre-Processing 3 March 7, 2012 13:59
FORCES don't run! C12Carbon OpenFOAM 0 September 10, 2011 07:34
SnappyHexMesh large number of patches written prapanj OpenFOAM Mesh Utilities 0 July 15, 2009 08:11


All times are GMT -4. The time now is 16:22.