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

Openfoam Post Processing Cumulative Drag

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By AybarsSeyhan

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 14, 2024, 09:05
Default Openfoam Post Processing Cumulative Drag
  #1
New Member
 
İstanbul
Join Date: Dec 2020
Posts: 1
Rep Power: 0
AybarsSeyhan is on a distinguished road
Hello, I am doing a project about drag reduction devices for US Trucks. I am trying to add some cumulative drag plots too. But in my graphs it seems like the Cd is decreasing between the truck and the trailer. All the paper that i read says that it should increase due to the pressure difference. I also tested it with vortex traps set in front of the trailer. I am attaching my forceCoeffs file and my graphs. Can you give me feedback about what could went wrong or did i get wrong results.

Thank you all

Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v2306                                 |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/

forceCoeffs1
{
    type            forceCoeffs;

    libs            (forces);

    writeControl    timeStep;
    timeInterval    1;

    log             yes;
    
    writeFields     yes;	// Store and write volume field representations of forces and moments
    
    patches (truckbase symmetry);

    rho             rhoInf;      // Indicates incompressible
    rhoInf          1;           // Required when rho = rhoInf
    liftDir         (0 0 1);
    dragDir         (1 0 0);
    CofR            (0 0 0); 	//The point around which your torque will be calculated. 
    pitchAxis       (0 1 0);
    magUInf         24.5872;		 // INPUT SPEED INITIAL
    lRef            20.315;        // Wheelbase length	the longest line in the x direction will be the lRef. 
    Aref            5.196;  //10.392;    
    
   /* binData
    {
        nBin        50;          // output data into 20 bins
        direction   (1 0 0);     // bin direction
        cumulative  yes;
    }*/   
}


binField1
{
    type                    binField;
    libs                    (fieldFunctionObjects);
    binModel                singleDirectionUniformBin;
    fields                  (forceCoeff);
    patches                 (truckbase);
    decomposePatchValues    true;
    CofR                    ${../forceCoeffs1/CofR};

    binData
    {
        nBin        50;          // 
        direction   (1 0 0);     // bin direction
        cumulative  yes;
    }
    writeControl            timeStep;
}
Attached Images
File Type: png base_vortex_graph.png (26.6 KB, 17 views)
File Type: png base_cum_drag (1)-overlay.png (46.6 KB, 21 views)
s1291 likes this.
AybarsSeyhan is offline   Reply With Quote

Reply

Tags
drag coefficient, force coefficients, opeanfoam, post processing


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
courant number increases to rather large values 6863523 OpenFOAM Running, Solving & CFD 22 July 6, 2023 00:48
Map of the OpenFOAM Forum - Understanding where to post your questions! wyldckat OpenFOAM 10 September 2, 2021 06:29
Lagrangian post processing in OpenFOAM 5 + jkeep OpenFOAM Post-Processing 0 June 17, 2019 02:07
pimpleDyMFoam computation randomly stops babapeti OpenFOAM Running, Solving & CFD 5 January 24, 2018 06:28
Micro Scale Pore, icoFoam gooya_kabir OpenFOAM Running, Solving & CFD 2 November 2, 2013 14:58


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