CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [Gmsh] gmshToFoam command (https://www.cfd-online.com/Forums/openfoam-meshing/133933-gmshtofoam-command.html)

mvinassa April 22, 2014 17:32

gmshToFoam command
 
Hello,
I am new in OpenFOAM, meshing and CFD, and I am doing my first steps into programming.
The thing is I need to transform the elements generated using Delaunay into gmsh to Voronoi elements. After a long research, I found that maybe gmshToFoam could help me to get a voronoi mesh.
I have a few questions:
1- am I right thinking that gmshToFoam would transform my Delaunay triangle into my Voronoi elements? My model currently has more than 7 MM elements, of course I need to simplified it, but still its wanna be a big model.

2- are you aware of any better method to transform Delaunay into Voronoi?

3- Do you realized where my mistake could be and why can't find the file? Trust me the file location is fine (Home->OpenFoam->mv-2.3.0)

I have been trying with this command but the following mistake appears:
ubuntu@ubuntu:~$ gmshToFoam /Home/OpenFoam/mv-2.3.0/cube.msh
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.3.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 2.3.0-f5222ca19ce6
Exec : gmshToFoam /Home/OpenFoam/mv-2.3.0/cube.msh
Date : Apr 22 2014
Time : 16:10:52
Host : "ubuntu"
PID : 13058
Case : /home/ubuntu
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations

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

--> FOAM FATAL IO ERROR:
cannot find file

file: /home/ubuntu/system/controlDict at line 0.

From function regIOobject::readStream()
in file db/regIOobject/regIOobjectRead.C at line 73.

FOAM exiting

I really appreciate any help you can give me with this.

Thank you very much

assert April 25, 2014 07:36

cannot find file 'controlDict'
 
The error is here:

Quote:

cannot find file

file: /home/ubuntu/system/controlDict at line 0.
Solution: add a file called 'controlDict' in the folder '/home/ubuntu/system'.

To give you a head start, here is an example, but Google yourself to suit your needs

Code:

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

application            sonicFoam;
startFrom          latestTime;
startTime          0;
stopAt              endTime;
endTime            7e-3;           
deltaT                1e-8;
writeControl        adjustableRunTime;
writeInterval      1e-6;           
purgeWrite          0;
writeFormat        ascii;
writePrecision      6;
writeCompression    uncompressed;
timeFormat          general;
timePrecision      6;
runTimeModifiable    yes;
adjustTimeStep      no;



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