Skip to content
Snippets Groups Projects

Add parameter for refining only parts of the grid adaptively and write the grid using an unstructured grid writer and create a file containing the final deformation

3 files
+ 71
18
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -97,6 +97,10 @@ dirichletVerticesPredicate = "x[0] < 0.01"
@@ -97,6 +97,10 @@ dirichletVerticesPredicate = "x[0] < 0.01"
# x is the vertex coordinate
# x is the vertex coordinate
neumannVerticesPredicate = "x[0] > 4.99"
neumannVerticesPredicate = "x[0] > 4.99"
 
### Python predicate specifying vertices whose elements should get adaptively refined; the number of grid levels is numLevels
 
# x is the vertex coordinate
 
#adaptiveRefinementPredicate = "x[1] > 0.99 and x[0] > 1.99"
 
### Neumann values, if needed
### Neumann values, if needed
neumannValues = 0 5e4 0
neumannValues = 0 5e4 0
Loading