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

First steps with OpenFoam..

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

Reply
 
LinkBack Thread Tools Display Modes
Old   January 10, 2014, 08:24
Exclamation First steps with OpenFoam..
  #1
New Member
 
Ainhoa Artola
Join Date: Jan 2014
Posts: 1
Rep Power: 0
Ainhoa is on a distinguished road
Hello everybody,
I am a new user of OpenFoam. I was looking the tutorials and more or less I would say I understand the examples. But my Problem is that when I have to start with a new Simulation or case, I have no idea how to start. I was reading in different Forums and I find them very useful but I can find only answers for more advanced questions.
Until now what I did is the next:
I had the geometry in Autodesk Inventor, I exported it as STEP to Salome and I did the meshing there. I exported that mesh to OpenFoam as unv file and I used ideasUnvToFoam to convert it to OpenFoam Format. Until here I think I did it well. But I have no idea how to continue...
I supose I have to choose the most similar case in the tutorials and modify it right? But do I Need to modify all the files? And for example, how can I introduce the new geometry I want to simulate to the case I am basing on?
Apart of the Problem of OpenFoam I am not a user of Linux so I don't know it very well...
I am really lost as you can see Could somebody help me? I just Need the very first and Basic steps, or if you know some tutorial, web page, example... to build new simulations... I would be really happy
Thank you in advance,

Ainhoa
Ainhoa is offline   Reply With Quote

Old   January 13, 2014, 03:00
Default
  #2
Senior Member
 
RodriguezFatz's Avatar
 
Philipp
Join Date: Jun 2011
Location: Germany
Posts: 1,296
Rep Power: 19
RodriguezFatz will become famous soon enough
I am new as well and do the following:
I import the fluent mesh to openfoam by going to the folder (in the terminal) where my .msh file is and using "fluent3DtoFoam". This command will crash until all necessary files are in the current folder (such as the /system/controlDict file...).
Now once it works it will produce a /constant/polyMesh/... folder with some files.

The "/constant/polyMesh/boundary" file will tell you which boundary conditions you will need (the names of the walls, inlets, ...). Create a "/0" folder with all the boundary files you need (have a look at the tutorials). You will need "p" and "U" and then dependent on your turbulence model you will need "k" and "omega" for example.
You can have a look at the tutorials for the syntax.

In the "/constant" directory you also have to give information about the turbulence model (see tutorials). Then, all numerics is specified in the "/system" folder.

What you can do is just starting the solver you want to use (such as simpleFoam) in the folder of your case. It will ask you for all missing files. And also missing commands in the files!
__________________
The skeleton ran out of shampoo in the shower.
RodriguezFatz is offline   Reply With Quote

Old   January 13, 2014, 14:21
Default
  #3
Member
 
Jace
Join Date: Oct 2012
Posts: 77
Rep Power: 6
zhengzh5 is on a distinguished road
Quote:
Originally Posted by Ainhoa View Post
Hello everybody,
I am a new user of OpenFoam. I was looking the tutorials and more or less I would say I understand the examples. But my Problem is that when I have to start with a new Simulation or case, I have no idea how to start. I was reading in different Forums and I find them very useful but I can find only answers for more advanced questions.
Until now what I did is the next:
I had the geometry in Autodesk Inventor, I exported it as STEP to Salome and I did the meshing there. I exported that mesh to OpenFoam as unv file and I used ideasUnvToFoam to convert it to OpenFoam Format. Until here I think I did it well. But I have no idea how to continue...
I supose I have to choose the most similar case in the tutorials and modify it right? But do I Need to modify all the files? And for example, how can I introduce the new geometry I want to simulate to the case I am basing on?
Apart of the Problem of OpenFoam I am not a user of Linux so I don't know it very well...
I am really lost as you can see Could somebody help me? I just Need the very first and Basic steps, or if you know some tutorial, web page, example... to build new simulations... I would be really happy
Thank you in advance,

Ainhoa
use "ideasUnvToFoam" to convert mesh file from Salome to OpenFOAM. This should write you the polyMesh directory inside ./constant. You can always use "paraFoam" to make sure your geometry/mesh is properly imported.

As for the rest, check the post above =)
zhengzh5 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
2D Mesh Generation Tutorial for GMSH aeroslacker Open Source Meshers: Gmsh, Netgen, CGNS, ... 12 January 19, 2012 04:52
Compiling OpenFOAM on hpc-fe.gbar.dtu.dk kaergaard OpenFOAM Installation 1 June 16, 2011 01:33
How to Install OpenFOAM on 64 Ubuntu 9.04 hansel OpenFOAM Installation 62 March 19, 2010 15:43
First steps in OpenFOAM StructureITA OpenFOAM 4 May 2, 2009 11:00
OpenFOAM Training and Workshop Hrvoje Jasak Main CFD Forum 0 October 7, 2005 07:14


All times are GMT -4. The time now is 07:04.