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

Forces to be written in different patches

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By tomf

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 29, 2013, 11:16
Default Forces to be written in different patches
  #1
New Member
 
Sha Huang
Join Date: Dec 2012
Posts: 22
Rep Power: 13
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, 11:27
Default
  #2
New Member
 
Sha Huang
Join Date: Dec 2012
Posts: 22
Rep Power: 13
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, 04:33
Default
  #3
Senior Member
 
Tom Fahner
Join Date: Mar 2009
Location: Breda, Netherlands
Posts: 634
Rep Power: 32
tomf will become famous soon enoughtomf will become famous soon enough
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 04:36. Reason: improved typestting layout
tomf is offline   Reply With Quote

Old   January 30, 2013, 05:20
Default
  #4
New Member
 
Sha Huang
Join Date: Dec 2012
Posts: 22
Rep Power: 13
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, 10:44
Default
  #5
Senior Member
 
stephane sanchi
Join Date: Mar 2009
Posts: 314
Rep Power: 18
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


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
Forces on multiple patches in InterDyMFoam Claudio OpenFOAM Post-Processing 5 October 20, 2016 12:46
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 12:59
FORCES don't run! C12Carbon OpenFOAM 0 September 10, 2011 07:34
[snappyHexMesh] SnappyHexMesh large number of patches written prapanj OpenFOAM Meshing & Mesh Conversion 0 July 15, 2009 08:11


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