Skip to content
Discussion options

You must be logged in to vote

Thank you for your suggestions! It works now.
Here is my final code:

using Gridap
L = 1.0 # Length
W = 0.2 # Width
domain = (0,L, 0,W, 0,W)
partition = (40,12,12)
model = CartesianDiscreteModel(domain, partition)
labels = get_face_labeling(model)
# Tag the right face (x = L)
add_tag_from_tags!(labels,"left",[1,3,5,7,13,15,17,19,25]) # left face: corners (1,3,5,7); edges (13,15,17,19); others (25) 
add_tag_from_tags!(labels, "right", [2,4,6,8,14,16,18,20,26]) # Right face: corners (2,4,6,8); edges (14,16,18,20); others (26) 
writevtk(model,"3D_Problem")

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sy-nguyen-van
Comment options

Answer selected by sy-nguyen-van
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants