CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[Gmsh] gmshToFoam command

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 22, 2014, 18:32
Default gmshToFoam command
  #1
New Member
 
Mauricio Vinassa
Join Date: Apr 2014
Posts: 1
Rep Power: 0
mvinassa is on a distinguished road
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
mvinassa is offline   Reply With Quote

Old   April 25, 2014, 08:36
Default cannot find file 'controlDict'
  #2
New Member
 
Richel Bilderbeek
Join Date: Nov 2013
Posts: 14
Rep Power: 13
assert is on a distinguished road
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;
__________________
I will never accept a 'Friend' request, I will always accept beer

Last edited by assert; April 25, 2014 at 08:37. Reason: layout
assert is offline   Reply With Quote

Reply

Tags
delaunay voronoi, gmshtofoam problem


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
8x icoFoam speed up with Cufflink CUDA solver library kmooney OpenFOAM Running, Solving & CFD 42 November 6, 2012 12:37
OpenFOAM 1.7.1 installation problem on OpenSUSE 11.3 flakid OpenFOAM Installation 16 December 28, 2010 09:48
Installation OF1.5-dev ttdtud OpenFOAM Installation 46 May 5, 2009 03:32
OpenFOAM15 installables are incomplete problem with paraFoam tryingof OpenFOAM Bugs 17 December 7, 2008 05:41
Regarding FoamX running Kindly help out hariya03 OpenFOAM Pre-Processing 0 April 18, 2008 05:26


All times are GMT -4. The time now is 05:58.