CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Contrib wpcRAS: utility to calculate wind pressure coefficient

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By roth

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 2, 2012, 04:44
Default Contrib wpcRAS: utility to calculate wind pressure coefficient
  #1
hfs
Member
 
Join Date: Jul 2012
Posts: 66
Rep Power: 13
hfs is on a distinguished road
I just found this tool to calculate wind pressure coefficients (works for OF1.6, OF2.0)

http://openfoamwiki.net/index.php/Contrib_wpcRAS

I tried it on OF 2.1.x... did not work..
I hope that I can find a similar tool for OF 2.1.x


Any ideas??
hfs is offline   Reply With Quote

Old   November 12, 2012, 11:35
Default octree stuff changed
  #2
Member
 
Michael Roth
Join Date: Mar 2009
Location: Guelph, Ontario, Canada
Posts: 50
Rep Power: 17
roth is on a distinguished road
In readDict.H comment out all the octree stuff and replace with a single line i.e. modify as per below:
Code:
    Info << "Reference Static Pressure Location = " <<
        referenceStaticPressureLocation << endl; 

    //~ // make octree  data cells
    //~ const cellList& cells = mesh.cells();
    //~ const pointField& points = mesh.points();

    //~ treeBoundBox meshBb(points);

    //~ scalar typDim = meshBb.avgDim()/(2.0*pow(cells.size(), 1.0/3.0));

    //~ treeBoundBox shiftedBb
    //~ (
        //~ meshBb.min() - vector(typDim, typDim, typDim),
        //~ meshBb.max() + vector(typDim, typDim, typDim)
    //~ );

    //~ octreeDataCell shapes(mesh);

    //~ octree<octreeDataCell> oc
    //~ (
        //~ shiftedBb,  // overall bounding box
        //~ shapes,     // all information needed to do checks on cells
        //~ 1,          // min. levels
        //~ 10.0,       // max. size of leaves
        //~ 10.0        // maximum ratio of cubes v.s. cells
    //~ );


    // label cellRefPstat = oc.find(referenceStaticPressureLocation);

    label cellRefPstat = mesh.findCell(referenceStaticPressureLocation);
and comment out the octree stuff in wpcRAS.C:
Code:
#include "incompressible/RAS/RASModel/RASModel.H"
//~ #include "octree.h"
//~ #include "octreeDataCell.H"
#include "wallFvPatch.H"
Should work. I just grabbed a mesh lookup from the probes source code.
hfs likes this.
roth 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
Simulation of a single bubble with a VOF-method Suzzn CFX 21 January 29, 2018 00:58
Calculation of the Governing Equations Mihail CFX 7 September 7, 2014 06:27
Contour of Pressure Coefficient and Velocity Vectors Colored by Pressure Coefficient sonam OpenFOAM 0 August 2, 2012 00:16
Automotive test case vinz OpenFOAM Running, Solving & CFD 98 October 27, 2008 08:43
Gas pressure question Dan Moskal Main CFD Forum 0 October 24, 2002 22:02


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