Meshing a circle in a square
Hi,
I'm attempting to make a mesh of a circle split into two radial block regions and four angular block regions. This circle is nested inside a square of eight angular block regions. This is actually for a neutronic solver - it's meant to represent a fuel pin in a nuclear reactor. I'm having trouble getting it to mesh - I'm sure there are at least a few errors but currently struggling to identify the cause of: HTML Code:
Invalid arc definition - are the points co-linear? Denom =0 Code:
vertices |
Hi,
Do you have a simple schematic or a diagram of your geometry? That would greatly help in trying to understand your vertices, arcs and block definitions. Cheers, Antimony |
1 Attachment(s)
Hi Antimony,
Thanks very much for the response. Here's a picture of what I'm looking for with each region intended to be a different block consisting of one mesh cell - ignore the red line cutting across! I fear blockMesh may not be an efficient way to make these but it's a start. Cheers! |
Hi,
Your problem comes from your vertices 9 and 6 both of which have a y-value of 0.5 & the interpolation point, which also has a y-value of 0.5 as a result of which the three points are co-linear. Hope this helps. Cheers, Antimony |
1 Attachment(s)
Problem solved! Thanks Antimony - there were plenty more but all a bit less opaque.
On a follow up note, after meshing the geometry it's not quite what I expected, likely due to using only one mesh cell per block. Instead of something a bit more curvaceous, the attached image appears which isn't quite what I'm hoping for. Do you know how I might instead wind up with curved mesh cells as in the image above? Thanks again. EDIT: I think the problem is due to requiring some intermediate points along the curved lines - tried to cheat that by skipping the midpoints. Still investigating though! |
Alas, no luck, I just can't get the edges to curve in spite of using the arc command. Any help would be much appreciated!
Code:
vertices |
Hi,
Increase the number of divisions/cells along the edges that need to be an arc. If you think about it, one cell is never really going to create a proper arc. So instead of a single cell, try ten cells (as a start). The edge will look more like an arc. So instead of: hex (0 1 2 3 21 22 23 24) (1 1 1) Try: hex (0 1 2 3 21 22 23 24) (10 10 1) Cheers, Antimony |
All times are GMT -4. The time now is 03:02. |