So I think there is two things to be solved here (and that is on this point that we did not understand each other this morning)
(conceptual)elementRegions are supposed to be used for defining different behaviors. For instance, we can use poroelasticity on the Mid layer, whereas we can use simple elasticity on the two others. I use the elementRegions to define the actual geological regions, and to set different properties on it (but with the same "physics" behind).
(practical) It's very tedious to define properties like that. So we need to find a more convenient way to set, let's say the Young modulus, using one XML node. (and I think it is what you were talking about by showing me the BoundaryCondition code).
I think the second point can be solved pretty easily, I am not sure for the first point.
In any case, the user has to be able to specify properties, constant by geological regions (which is the assumption made in a lot of application cases in geomechanics),
Following the meeting of this morning, sorry if I were not so clear on the problem I have.
Let say I have this model, and that I want to run a linear elasticity problem on it:
With this mesh:
For the moment, I am doing this
So in the XML file, I will define my ElementRegions
and to define the properties, it becomes quite tedious...
So I think there is two things to be solved here (and that is on this point that we did not understand each other this morning)
(conceptual)
elementRegions
are supposed to be used for defining different behaviors. For instance, we can use poroelasticity on the Mid layer, whereas we can use simple elasticity on the two others. I use the elementRegions to define the actual geological regions, and to set different properties on it (but with the same "physics" behind).(practical) It's very tedious to define properties like that. So we need to find a more convenient way to set, let's say the Young modulus, using one XML node. (and I think it is what you were talking about by showing me the BoundaryCondition code).
I think the second point can be solved pretty easily, I am not sure for the first point.
In any case, the user has to be able to specify properties, constant by geological regions (which is the assumption made in a lot of application cases in geomechanics),