u/camamce

▲ 3

Direction desperately need, 2D simulation

Hey all, just wondering if someone could take some time to give me some assistance.
I'm new to OpenFoam and have been playing with tutorials and changing parts of them to see if i can do them without the full structure of the "tutorial".

I am using blockMesh, topoSet then refineMesh(a few iteration of the two), for my background mesh, works fine.

Extrude Mesh to make it 2D.

Translate (to recentre in Z axis)

snappyHexMesh for my STL geometry.

Extrude Mesh again because a tutorial did this. not sure what this does, my guess is makes it more uniform if the snappyHexMesh is being funky? i dont think its 100% 2D because extruding it by 1 only acts on the base cell? and snappy divides in in the z direction but i guess its close enough to be acting like it. its only cell number I'm trying to lower and isnt that important.

And i recentre it again in Z axis.

When i look at the mesh its as i expect and im not looking for it to be perfect as its more the functionality im trying to learn.

After my meshing it gives me folders 0,1,2,3. timesteps as my mesh gets iterated(dont fully understand this because i have "-overwrite" on my snappy and thought that just gives a singular final mesh?). the 0 folder overwrites the initial conditions folder. this is where my understanding goes out the window..

I decomposePar and copy my 0.orig folder and rename it "0" into all the processor* folders.

mpirun -np 8 simpleFoam -parallel
but it fails because it cant find 0/p

Could someone give some insight to the logic im obviously lacking. i will no doubt have follow up questions so be ready

reddit.com
u/camamce — 4 days ago