|
[Sponsors] |
January 29, 2013, 12:16 |
Forces to be written in different patches
|
#1 |
New Member
Sha Huang
Join Date: Dec 2012
Posts: 22
Rep Power: 13 |
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. |
|
January 29, 2013, 12:27 |
|
#2 |
New Member
Sha Huang
Join Date: Dec 2012
Posts: 22
Rep Power: 13 |
the OF version i used is v2.1.1
|
|
January 30, 2013, 05:33 |
|
#3 |
Senior Member
|
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; } Tom Last edited by tomf; January 30, 2013 at 05:36. Reason: improved typestting layout |
|
January 30, 2013, 06:20 |
|
#4 |
New Member
Sha Huang
Join Date: Dec 2012
Posts: 22
Rep Power: 13 |
Hi Tom:
Thank you so much for that. I will try that. |
|
February 4, 2013, 11:44 |
|
#5 |
Senior Member
stephane sanchi
Join Date: Mar 2009
Posts: 314
Rep Power: 18 |
Hi Joanna,
can you upload some pictures (mesh, pressure contours, streamlines, ...) of your work about train aerodynamics ? Best regards, Stephane. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Forces on multiple patches in InterDyMFoam | Claudio | OpenFOAM Post-Processing | 5 | October 20, 2016 13:46 |
Forces for airfoil test case | Martin_ | OpenFOAM Running, Solving & CFD | 1 | July 2, 2012 12: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 08:34 |
[snappyHexMesh] SnappyHexMesh large number of patches written | prapanj | OpenFOAM Meshing & Mesh Conversion | 0 | July 15, 2009 09:11 |