Creating a multivalues constraint defined by lines
Hi,
I would like to create a constraint of the field A as shown in the figure. Every line is a physical region.
I defined a function for each constraint:
Function {
az_0[] = Vector[0, 0, -0.01838712666517017] ;
az_1[] = Vector[0, 0, -0.01837903738726093] ;
...
}
Then, I created a constraint for each line
Constraint {
{ Name az_0 ; Case { { Region Az_BoundaryLine_0 ; Value az_0[] ; } } }
{ Name az_1 ; Case { { Region Az_BoundaryLine_1 ; Value az_1[] ; } } }
{ Name az_2 ; Case { { Region Az_BoundaryLine_2 ; Value az_2[] ; } } }
...
}
where Az_BoundaryLine~{} is the region associated with the line.
I added the definition to the Functionspace:
Constraint {
{ NameOfCoef ae; EntityType EdgesOf ; NameOfConstraint a; }
For ii In {0:NumBoundaryPoints-1}
{ NameOfCoef ae; EntityType NodesOf ; NameOfConstraint az~{ii}; }
EndFor
}
I don't get any error from the solver, but it seems the constraints are not set when I display the A solution.
what is wrong with my procedure? I can share my files if needed.
PS: This is the solution I thought to set a field constraint defined by points. Please, tell me If you know any smarter solutions.
Thanks