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/)
-   -   [Commercial meshers] CuBit (https://www.cfd-online.com/Forums/openfoam-meshing/61615-cubit.html)

t42 May 19, 2008 09:36

CuBit
 
Hi Forum,

Just a few weeks ago i asked if somebody has experiences with CuBit as a preprocessor in
combination with OpenFoam. I only got one answer.
I was told that there should be no problem importing CuBit-meshes into OpenFoam.

Is there somebody else who has experiences with CuBit and importing itīs meshes into OpenFoam.

I would be very pleased get some information about this.

Thanks a lot

tian June 29, 2008 06:01

Hi, I also use CUBE and Ope
 
Hi,

I also use CUBE and OpenFOAM. I export the mesh in Fluent format and importing the mesh in OpenFOAM, no problem...

Bye
Tian

sradl June 29, 2008 06:37

Hi Thomas! I saw that the f
 
Hi Thomas!

I saw that the fluent export function is new in Cubit 11.0. However, I have no tested it - currently I export in ideasUNV format, which allows me to only define "groups" of faces but not to specify the patch type, i.e., if this is a wall or a inlet, etc.

Is it also possible to export boundary conditions, e.g. wall, etc.

br
Stefan

tian July 8, 2008 08:36

Hi Stefan, I tried also to
 
Hi Stefan,

I tried also to export in ideasUNV Format with group of faces to OpenFOAM with CUBIT 11. It was not working :-( Do you have a nice excample for CUBIT? Thanks

Thomas

sradl July 8, 2008 08:50

I had to modify the import pro
 
I had to modify the import program a little, it is attached here:

http://www.cfd-online.com/OpenFOAM_D...hment_icon.gif ideasUnvToFoam_zip.tar.gz

tian July 8, 2008 15:44

Hi Stefan, thanks for the f
 
Hi Stefan,

thanks for the files. I can not import the UNV File. I group the face and export it but I can not import to OF. Can you also send me the Cubit File al excample? Sorry for my english, my german is better ;-)

Bye
Thomas

tian July 10, 2008 07:51

Hi, here is an example for
 
Hi,

here is an example for generation a mesh in Cubit and export it in msh format for OpenFOAM:

brick x 4 y 4 z 1
create cylinder height 1 radius 0.5
subtract volume 2 from volume 1
create cylinder height 1 radius 1
chop volume 1 with volume 3
webcut volume all with plane yplane noimprint nomerge
webcut volume all with plane xplane noimprint nomerge
delete volume 4 5 8 9
webcut volume 10 with plane xplane rotate 45 about z center 0 0 0 noimprint nomerge
webcut volume 6 with plane xplane rotate -45 about z center 0 0 0 noimprint nomerge
sweep curve 149 164 along curve 70
sweep curve 164 along curve 129
sweep curve 149 along curve 137
webcut volume 7 with sheet surface 109
webcut volume 18 with sheet surface 108
webcut volume 11 with sheet surface 107
webcut volume 11 with sheet surface 110
delete surface all


imprint volume all
merge volume all
curve 39 41 156 158 65 189 141 139 110 108 61 231 35 37 124 204 12 216 11 interval default
curve 39 41 156 158 65 189 141 139 110 108 61 231 35 37 124 204 12 216 11 interval 1 preview
curve 39 41 156 158 65 189 141 139 110 108 61 231 35 37 124 204 12 216 11 interval 1
curve 39 41 156 158 65 189 141 139 110 108 61 231 35 37 124 204 12 216 11 scheme equal
mesh curve 39 41 156 158 65 189 141 139 110 108 61 231 35 37 124 204 12 216 11
volume 6 10 12 13 interval 10
mesh volume 6 10 12 13
volume 7 19 interval 20
mesh volume 7 19
delete mesh volume 7 19 propagate
volume 7 19 interval 20
mesh volume 7 19
volume 20 18 21 11 interval 20
mesh volume 20 18 21 11

sideset 1 surface 94 90 106 99
sideset 1 name cylinder
sideset 2 surface 40 27 28 41
sideset 2 name down
sideset 3 surface 130 135 122 128
sideset 3 name up
sideset 4 surface 146 140
sideset 4 name left
sideset 5 surface 118 115
sideset 5 name right

export fluent cylinder.msh volume all overwrite

In Openfoam import the file with:

fluentMeshToFoam root case cylinder.msh

Have fun
Thomas


All times are GMT -4. The time now is 11:15.