Skip to content

Commit

Permalink
Changing ahead cuboids case to have different # elements in
Browse files Browse the repository at this point in the history
different subdomains.
  • Loading branch information
ikalash committed Dec 10, 2024
1 parent 738bb9c commit 2f9e346
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions examples/ahead/nonoverlap/cuboid/cuboids-hex.jou
Original file line number Diff line number Diff line change
@@ -1,8 +1,28 @@
${side = 1.0}
${height = 1.5}
${overlap_vol_frac = 0.0}
${h_fine = 1.00}
${h_coarse = 1.00}
${h_fine = 0.25}
${h_coarse = 0.50}

${area = side * side}
${volume = area * height}
${overlap_volume = overlap_vol_frac * volume}
${overlap_length = overlap_volume / area}
${domain_height = (height + overlap_length) / 2.0}
${offset = abs(domain_height - overlap_length) / 2.0}

create brick x {side} y {side} z {domain_height}
move volume 1 z {-offset} include_merged
#volume 1 scheme tetmesh
volume 1 size {h_fine}
mesh volume 1
block 1 volume 1
#block 1 element type tetra4
block 1 name "fine"
nodeset 1 surface 4
nodeset 1 name "nsx-"
nodeset 2 surface 6
nodeset 2 name "nsx+"

${area = side * side}
${volume = area * height}
Expand Down

0 comments on commit 2f9e346

Please sign in to comment.