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

Files
3
@@ -8,7 +8,7 @@ upper = 5 1 1
elements = 20 5 5
# Number of grid levels
numLevels = 1
numLevels = 3
#############################################
# Solver parameters
@@ -97,6 +97,11 @@ dirichletVerticesPredicate = "x[0] < 0.01"
# x is the vertex coordinate
neumannVerticesPredicate = "x[0] > 4.99"
### Python predicate specifying all Dirichlet grid vertices
# x is the vertex coordinate
adaptiveRefinementPredicate = "x[1] > 0.99 and x[0] > 1.99"
### Neumann values, if needed
neumannValues = 0 5e4 0
Loading