droneCFD icon indicating copy to clipboard operation
droneCFD copied to clipboard

openme.foam is empty when calculation completes

Open pistolero opened this issue 9 years ago • 9 comments

I've done everything described in Getting Started. Running dcRun --preview final --resolution low takes 9 hours to complete, and then opens paraview with no data.

openme.foam file size is 0 bytes

Can you help me figure out what is wrong with my setup?

pistolero avatar Mar 19 '15 10:03 pistolero

Pistolero,

Can list the contents of the folder /DroneCFDSimulation/aoa_0.0?

openme.foam should be an empty file, it's only used to tell Paraview that the directory is an OpenFoam run.

-C

capaulson avatar Mar 19 '15 23:03 capaulson

Can list the contents of the folder /DroneCFDSimulation/aoa_0.0?

Sure, here it is:

drwxr-sr-x 20 pistolero pistolero    4096 бер 18 02:39 .
drwxr-xr-x  3 pistolero pistolero    4096 бер 18 02:39 ..
drwxr-sr-x  2 pistolero pistolero    4096 бер 17 15:52 0
drwxr-sr-x  3 pistolero pistolero    4096 бер 18 02:39 1000
drwxr-sr-x  3 pistolero pistolero    4096 бер 18 02:39 1500
drwxr-sr-x  3 pistolero pistolero    4096 бер 18 02:39 2000
drwxr-sr-x  3 pistolero pistolero    4096 бер 18 02:39 2500
drwxr-sr-x  3 pistolero pistolero    4096 бер 18 02:39 3000
drwxr-sr-x  3 pistolero pistolero    4096 бер 18 02:39 500
-rwxr-xr-x  1 pistolero pistolero     335 бер 17 15:52 Allclean
-rwxr-xr-x  1 pistolero pistolero     856 бер 17 15:52 Allrun
-rw-r--r--  1 pistolero pistolero       0 бер 17 15:55 aoa_0.0.foam
drwxr-sr-x  5 pistolero pistolero    4096 бер 17 15:55 constant
-rw-r--r--  1 pistolero pistolero       0 бер 17 15:52 openme.foam
drwxr-sr-x  4 pistolero pistolero    4096 бер 17 16:12 postProcessing
-rw-r--r--  1 pistolero pistolero    2850 бер 18 02:39 PyFoamHistory
drwxr-sr-x  2 pistolero pistolero    4096 бер 17 15:55 PyFoamRunner.blockMesh.analyzed
-rw-r--r--  1 pistolero pistolero    2134 бер 17 15:55 PyFoamRunner.blockMesh.logfile
drwxr-sr-x  2 pistolero pistolero    4096 бер 17 16:11 PyFoamRunner.decomposePar.analyzed
-rw-r--r--  1 pistolero pistolero    5131 бер 17 16:11 PyFoamRunner.decomposePar.logfile
drwxr-sr-x  2 pistolero pistolero    4096 бер 17 16:12 PyFoamRunner.potentialFoam.analyzed
-rw-r--r--  1 pistolero pistolero    2758 бер 17 16:12 PyFoamRunner.potentialFoam.logfile
drwxr-sr-x  2 pistolero pistolero    4096 бер 18 02:39 PyFoamRunner.reconstructPar.analyzed
-rw-r--r--  1 pistolero pistolero    2671 бер 18 02:39 PyFoamRunner.reconstructPar.logfile
drwxr-sr-x  2 pistolero pistolero    4096 бер 18 02:36 PyFoamRunner.reconstructParMesh.analyzed
-rw-r--r--  1 pistolero pistolero    6572 бер 18 02:36 PyFoamRunner.reconstructParMesh.logfile
drwxr-sr-x  2 pistolero pistolero    4096 бер 18 02:35 PyFoamRunner.simpleFoam.analyzed
-rw-r--r--  1 pistolero pistolero 3794776 бер 18 02:35 PyFoamRunner.simpleFoam.logfile
drwxr-sr-x  2 pistolero pistolero    4096 бер 17 16:09 PyFoamRunner.snappyHexMesh.analyzed
-rw-r--r--  1 pistolero pistolero  220273 бер 17 16:09 PyFoamRunner.snappyHexMesh.logfile
drwxr-sr-x  2 pistolero pistolero    4096 бер 17 15:55 PyFoamRunner.surfaceFeatureExtract.analyzed
-rw-r--r--  1 pistolero pistolero    2406 бер 17 15:55 PyFoamRunner.surfaceFeatureExtract.logfile
-rw-r--r--  1 pistolero pistolero      27 бер 18 02:36 PyFoamServer.info
-rw-r--r--  1 pistolero pistolero       7 бер 18 02:39 PyFoamState.CurrentTime
-rw-r--r--  1 pistolero pistolero      25 бер 18 02:39 PyFoamState.LastOutputSeen
-rw-r--r--  1 pistolero pistolero      84 бер 18 02:36 PyFoamState.LogDir
-rw-r--r--  1 pistolero pistolero      25 бер 18 02:36 PyFoamState.StartedAt
-rw-r--r--  1 pistolero pistolero       9 бер 18 02:39 PyFoamState.TheState
drwxr-sr-x  2 pistolero pistolero    4096 бер 17 15:52 system

openme.foam should be an empty file, it's only used to tell Paraview that the directory is an OpenFoam run.

Ok, it is nice to know. But I'm still wondering why I can't see anything in the paraview.

I'm new to OpenFOAM and paraview. Do I need to do something extra in paraview in order to see the data after I open openme.foam file?

pistolero avatar Mar 20 '15 09:03 pistolero

Ok, when I'm clicking 'Apply' on the left panel paraview begins to load something, but then fails with

ERROR: In /home/openfoam/OpenFOAM/ParaView-4.1.0/VTK/IO/Geometry/vtkOpenFOAMReader.cxx, line 6467 vtkOpenFOAMReaderPrivate (0x32c42c0): Error reading line 21 of /home/serg/cfd/DroneCFDSimulation/aoa_0.0/0/omega: Expected number, string or (, found turbulentOmega

Screenshot

and here is content of my 0/omega

/*--------------------------------------------------------------------------------*\
 _______  .______        ______   .__   __.  _______      ______  _______  _______
|       \ |   _  \      /  __  \  |  \ |  | |   ____|    /      ||   ____||       \
|  .--.  ||  |_)  |    |  |  |  | |   \|  | |  |__      |  ,----'|  |__   |  .--.  |
|  |  |  ||      /     |  |  |  | |  . `  | |   __|     |  |     |   __|  |  |  |  |
|  '--'  ||  |\  \----.|  `--'  | |  |\   | |  |____    |  `----.|  |     |  '--'  |
|_______/ | _| `._____| \______/  |__| \__| |_______|    \______||__|     |_______/

\*--------------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object omega;
}

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 0 -1 0 0 0 0];
turbulentOmega 1.78;
internalField uniform $turbulentOmega;
boundaryField
{
    inlet
    {
        type fixedValue;
        value $internalField;
    }
    outlet
    {
        type inletOutlet;
        inletValue $internalField;
        value $internalField;
    }
    walls
    {
        type omegaWallFunction;
        value $internalField;
    }
    Aircraft
    {
        type omegaWallFunction;
        value $internalField;
    }
}

What is wrong?

pistolero avatar Mar 20 '15 12:03 pistolero

I'll look into it. You should still have pressure and velocity data to look at. Can you confirm that data is there? Do you need Omega specifically?

dronecfd avatar Mar 20 '15 15:03 dronecfd

Thanks. Yes, I got the data.

BTW, what is the unit for a lift and drag in RunSummary.xlsx?

pistolero avatar Mar 20 '15 16:03 pistolero

Should be in Newtons

dronecfd avatar Mar 20 '15 16:03 dronecfd

I got lift about 5.1N for benchmarkAircraft.stl and default wind speed of 15 (m/s?)

It looks that it should be bigger for a given wind speed and plane size.

pistolero avatar Mar 20 '15 17:03 pistolero

That sounds about right for that foil at AOA=0 degrees. If it were a symmetric foil, I would expect 0 N. That specific airframe was designed to fly at ~1kg, so 5.1 N isn't far off from lift.

capaulson avatar Mar 20 '15 17:03 capaulson

Ok. Thanks a lot.

I want to say that I really appreciate your work on DroneCFD.

OpenFOAM is inherently complicated but your software makes process of wind tunnel testing really simple and streamlined.

pistolero avatar Mar 20 '15 18:03 pistolero