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

no sets folder in postProcessing, so I can't create streamlines

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 15, 2022, 16:22
Default no sets folder in postProcessing, so I can't create streamlines
  #1
Senior Member
 
Alan w
Join Date: Feb 2021
Posts: 265
Rep Power: 6
boffin5 is on a distinguished road
Previously, I successfully ran a chtMultiRegion case in which I could view streamlines by opening up a postProcessing/sets file in paraView.


I then used this case as a template for another case, but this time it isn't creating the sets folder, and for the life of me, I can't figure out why.


In the first case, under the postProcessing folder were these folders:
- cuttingPlane
- fluid
- sets


But in the second case, under postProcessing are:
- bod
- fieldsMinMax
- forceCoeffs1
- yPlus


During the run log, it says:


streamLine streamLines write:
seeded 0 particles
Tracks:0
Total samples:0


So something is not right.


But I have

#include "streamLines" in the controlDict, and the 'streamLines' file in the system folder.


Attached are the controlDict, streamLines and run output files. If more are needed, please let me know.


Why isn't the 'sets' folder with associated streamline data being created?
Attached Files
File Type: txt streamLines.txt (1.3 KB, 10 views)
File Type: txt controlDict.txt (2.6 KB, 3 views)
File Type: txt runlog(1).txt (6.9 KB, 0 views)
boffin5 is offline   Reply With Quote

Old   February 24, 2022, 11:55
Default still have this issue; here is more info
  #2
Senior Member
 
Alan w
Join Date: Feb 2021
Posts: 265
Rep Power: 6
boffin5 is on a distinguished road
In my experience (admittedly limited), I find that the native openFoam streamline function is way better than the paraView streamtracer. But in the case I am currently working, it is stubbornly refusing to execute. It is not creating a 'sets' folder with vtk data for streamlines under 'postProcessing'. In the run output, at the bottom it says that no particles are being seeded:


Code:
  

Build  : 9-b456138dc4bc
Exec   : simpleFoam -parallel
Date   : Feb 23 2022
Time   : 11:11:58
Host   : "boffin5-VirtualBox"
PID    : 43733
I/O    : uncollated
Case   : /home/boffin5/cfdaero/meredith-flow9
nProcs : 2
Slaves : 1("boffin5-VirtualBox.43734")
Pstream initialised with:
    floatTransfer      : 0
    nProcsSimpleSum    : 0
    commsType          : nonBlocking
    polling iterations : 0
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMas
ter (fileModificationSkew 10)
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0


SIMPLE: No convergence criteria found

Reading field p

Reading field U

Reading/calculating face flux field phi

Selecting incompressible transport model Newtonian
Selecting turbulence model type RAS
Selecting RAS turbulence model kOmegaSST
Selecting patchDistMethod meshWave
RAS
{
    model           kOmegaSST;
    turbulence      on;
    printCoeffs     on;
    alphaK1         0.85;
    alphaK2         1;
    alphaOmega1     0.5;
    alphaOmega2     0.856;
    gamma1          0.555556;
    gamma2          0.44;
    beta1           0.075;
    beta2           0.0828;
    betaStar        0.09;
    a1              0.31;
    b1              1;
    c1              10;
    F3              false;
}

No MRF models present

No fvModels present
No fvConstraints present

Starting time loop

Reading surface description:
    yNormal

forces forceCoeffs1:
    Not including porosity effects
forceCoeffs forceCoeffs1:
    Not including porosity effects
streamlines streamLine1:
    automatic track length specified through number of sub cycles : 5

forceCoeffs forceCoeffs1 write:
    Cm    = 0.00432683
    Cd    = 0.0532299
    Cl    = -0.000247849
    Cl(f) = 0.0042029
    Cl(r) = -0.00445075

              total        used        free      shared  buff/cache   available
Mem:        2025216     1022456      363124       14760      639636      828756
Swap:       2097148      848924     1248224
              total        used        free      shared  buff/cache   available
Mem:        2025216     1022716      362864       14760      639636      828496
Swap:       2097148      848924     1248224
streamlines streamLine1 write:
    seeded 0 particles
    Tracks:0
    Total samples:0
Time = 1
But I have closely followed the tutorial examples regarding streamlines. Here is my controlDict file. It is set up for OF9, but I had the same problem with OF8.

Code:
  

FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "system";
    object      controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

application     simpleFoam;

startFrom       latestTime;

startTime       0;

stopAt          endTime;

//endTime         2000;
endTime         200;

deltaT          1;
//deltaT          .001;

writeControl    timeStep;

writeInterval   50;

purgeWrite      0;

writeFormat     ascii;

writePrecision  6;

writeCompression off;

timeFormat      general;

timePrecision   6;

runTimeModifiable true;

functions
{
    //#include "streamLines"
    #include "cuttingPlane"
    #include "forceCoeffs"

    /*FieldsMinMax                // monitor 
    {
        type  fieldMinMax;
        functionObjectLibs      ("libfieldFunctionObjects.so");
        
        enabled                 true;
        mode                    component;
        writeControl            timeStep;
        writeInterval           5;  // output every 5 time steps, change
 as needed
        log                     true;
        fields                  (p U k);  // list of any fields you want
 to monitor
    }*/

    FreeMemorySystemCall        // memory
    {
        type                    systemCall;
        
        libs                    ("libutilityFunctionObjects.so");
        executeCalls            ();
        writeCalls              ("free");
        endCalls                ();
        writeControl            timeStep;
        writeInterval           50;  // Set the interval as required
    }
    
    bod
        {
            log no;
        enabled yes;

            type forceCoeffs;
            
            functionObjectLibs ( "libforces.so");

            patches (bod);

            rho rhoInf;
            rhoInf 1.058;

            //porosity no;
            CofR ( 0 0 0);
            liftDir ( 0 0 1);
            dragDir ( 1 0 0);
            pitchAxis ( 0 1 0);
            magUInf 56.589;     // meters per second
            lRef 1;
            Aref 1;
            writeControl timeStep;
            writeInterval 1;
        }
        
        yplus
        {
            type    yPlus;
            functionObjectLibs ("libfieldFunctionObjects.so");
            
            enabled true;

            writeControl outputTime;                      
            
         }
         
         streamlines
         {
             type            streamlines;

             // Where to load it from (if not already in solver)
             libs            ("libfieldFunctionObjects.so");

             // Output every
             writeControl    writeTime;
             // writeInterval 10;

             setFormat       vtk; // gnuplot;//xmgr;//raw;//jplot;//csv;//ensigh
t;

             // Track forward (+U) or backward (-U) or both
             direction       forward;

             // Names of fields to sample. Should contain above velocity field!
             fields (U);     //fields (p k U);

             // Steps particles can travel before being removed
             lifeTime        10000;

             // Number of steps per cell (estimate). Set to 1 to disable subcycl
ing.
             nSubCycle 5;

             // Cloud name to use
             cloudName       particleTracks;

             // Seeding method.
             seedSampleSet
             {
                 type        lineUniform;

                 axis        x;  // distance;
                 start       (1.2  0.1  0.0);
                 end         (1.2  0.1  0.2);
                 nPoints     20;
             }
        }

}
Hoping for some enlightenment; thanks in advance!
boffin5 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
Meshing a Sphere Ajay FLUENT 10 September 3, 2016 14:18
Creating and postprocessing a rotational surface paul_mathis OpenFOAM Post-Processing 2 July 13, 2009 04:09
Postprocessing - Create JPEG's without GUI. Frank D. FLOW-3D 1 January 9, 2009 00:06
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 11:55
How to create postprocessing planes in Gambit kyaw kyaw FLUENT 2 April 23, 2007 17:16


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