Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create new *blockMeshDict* #2

Closed
AndreWeiner opened this issue Apr 30, 2021 · 3 comments
Closed

Create new *blockMeshDict* #2

AndreWeiner opened this issue Apr 30, 2021 · 3 comments

Comments

@AndreWeiner
Copy link
Contributor

Hi Fabian,
as a warm-up, I would like to create an alternative mesh for the cylinder flow setup. The current setup uses a combination of the native OpenFOAM meshers blockMesh and snappyHexMesh. To simplify and accelerate the mesh creation, I would like to create the mesh entirely in blockMesh. I suggest the following steps

  • get familiar with the current simulation setup
  • check out the OpenFOAM user guide of blockMesh
  • this tutorial from the tutorial guide might be helpful
  • modify this existing blockMeshDict and remove snappyHexMeshDict and extrudeMeshDict

blocking_sketch

If questions come up, you can post them in this issue.

Best, Andre

@FabianGabriel
Copy link
Owner

Hi Andre,
I just did this task with the commit: 2aea2b4
Let me know if I can improve on certain aspects on this mesh.

Best, Fabian

@AndreWeiner
Copy link
Contributor Author

Hi Fabian,

the mesh looks pretty good. There is one point for improvement. Unfortunately, I pointed you to a tutorial that uses the old #calc syntax. The old preprocessing requires runtime compilation each time the mesh is created, as you probably noticed. The new #eval works much quicker. Here are some links that will help you to replace the old preprocessing with the new one:

Best, Andre

@FabianGabriel
Copy link
Owner

Hi Andre,

I have now replaced every #calc with #eval statements in commit 1d8e52d

Best, Fabian

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants