Unable to change mesh density in blocks
I'm attaching a simplified mesh code that utilizes 5 block regions. Each block starts with a very simple mesh density of (1 1 1).
My goal is to change the x-direction mesh density. Let's take the middle block "BLOCK III". I can change the mesh density to (10 1 1) and the the blockMesh command works without a problem. Now let's say I want to change the mesh density in both "BLOCK 0" and "BLOCK IV" to (20 1 1). Now I get an error message that says: Code:
--> FOAM FATAL ERROR: Many thanks, ~ Joseph Code:
FoamFile asfdasdf |
1 Attachment(s)
You can not mesh two connected blocks with different mesh density.
In the image attached, you see two blocks, with a green and a red mesh. The face the two blocks are connected, the grid lines don't match. This is why OpenFOAM aborts with an error. You have two options
|
Gerhard,
Thanks so much for the reply. The thumbnail you showed does not match what I am trying to do. I am not changing the y-direction mesh density. BLOCK 0 and BLOCK IV are on the left of my domain and on top of each other. Code:
|--------------|---|----------------| I am just trying to change the x-direction mesh density, e.g. Code:
// BLOCK 0 I feel like this is too simple of a problem to be a bug in the software but I cannot understand why this is not possible. Thanks so much for your help! ~ Joseph |
1 Attachment(s)
Your local coordinates are messed up.
Code:
blocks |
Gerhard,
Thanks so much for helping me isolate my error. I knew that blocks had to be defined in a CCW manner but did not realize the first vertex sets the origin. Best, ~ Joseph |
All times are GMT -4. The time now is 08:04. |