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

Result of forces-Object on multi Machines wont write to file

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

Reply
 
LinkBack Thread Tools Display Modes
Old   August 5, 2015, 04:30
Default Result of forces-Object on multi Machines wont write to file
  #1
New Member
 
Join Date: Jun 2015
Posts: 11
Rep Power: 3
Sway is on a distinguished road
hejhej,

i need the forces on a specific patch and therefor i use the function forces. it works fine when running on a single machine, but on cluster it stops writing the results to the forces file in /postProcessing/forces/ but the Terminal output still works
can someone please help me on this issue?

my controlDict:

Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.4.0                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "system";
    object      controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

libs
(
    "libOpenFOAM.so"
    "libincompressibleTurbulenceModel.so"
    "libincompressibleRASModels.so"
    "libsimpleSwakFunctionObjects.so"
      "libswakFunctionObjects.so"
      "libgroovyBC.so"
    
    
    
);

application     pimpleFoam;

//startFrom       latestTime;
startFrom      startTime;
startTime       0.89953;

stopAt          endTime;
//stopAt writeNow;
endTime         10;

deltaT          0.001;

writeControl    adjustableRunTime;

writeInterval   0.05;

purgeWrite      0;

writeFormat     ascii;

writePrecision  6;

writeCompression uncompressed;

timeFormat      general;

timePrecision   6;

runTimeModifiable true;

adjustTimeStep  yes;

maxCo           0.2; //0.2

functions
{
 forces
{
    type        forces;
    functionObjectLibs ( "libforces.so" );
    outputControl timeStep;
    outputInterval 1;

     patches     ( mypatchname );
     pName       p;
     UName       U;
     rhoName     rhoInf;      // Indicates incompressible
     log         true;
     rhoInf      1000;           // Redundant for incompressible
     liftDir     (0 1 0);
    dragDir     (1 0 0);
    CofR        (0 0 0);  // Axle midpoint on ground
//     pitchAxis   (0 1 0);
 //    magUInf     3;
//     lRef        1.42;        // Wheelbase length
//     Aref        0.75;        // Estimated

    }
    

    massFlow
   {
       type patchMassFlow;
       functionObjectLibs
         (
           "libsimpleFunctionObjects.so"
         );
       verbose true;
       patches
         (
           inlet
           outlet
         );
       factor 1;
       outputControlMode timeStep;
       outputInterval 1;
   }
   
   pressureDrop
    {
        type patchExpression;
        variables ( 
            "pOut{patch'outlet}=sum(p*area())/sum(area());"
            "inArea=sum(area());"
        );
        accumulations (
           sum
        );
        patches (
            inlet
            outlet
        );
        expression "area()*(p-pOut)/inArea";
        verbose true;
    
    outputControlMode timeStep;
       outputInterval 1;
    }
   
    
};

// ************************************************************************* //
Sway is offline   Reply With Quote

Old   September 2, 2015, 09:45
Default
  #2
New Member
 
Join Date: Jun 2015
Posts: 11
Rep Power: 3
Sway is on a distinguished road
the answer to this problem was the umask of the slave-machines. the data they wrote wasnt readable by the master-computer. i changed it to 000 globaly on all slaves
Sway 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
Helyx-OS (GUI for SnappyHexMesh elvis OpenFOAM Native Meshers: snappyHexMesh and Others 201 September 2, 2016 09:41
swak4foam building problem GGerber OpenFOAM Installation 54 April 24, 2015 16:02
Swak4Foam funkyDoCalc with OF2.3 massflow NiFl OpenFOAM 8 March 24, 2014 21:06
Compilation error OF1.5-dev on Suse10.3 darenyang OpenFOAM Installation 0 April 29, 2009 04:55
DxFoam reader update hjasak OpenFOAM Post-Processing 69 April 24, 2008 01:24


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