# Model boundary oblique to axes

**URL:** <https://community.geodynamics.org/t/model-boundary-oblique-to-axes/1745>\
**Category:** PyLith\
**Created:** [March 22, 2021, 3:16pm UTC](https://community.geodynamics.org/t/model-boundary-oblique-to-axes/1745 "2021-03-22T15:16:29Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![LauraBM](https://avatars.discourse-cdn.com/v4/letter/l/3bc359/32.png) [@LauraBM](https://community.geodynamics.org/u/LauraBM)\
**Post date:** [March 22, 2021, 3:16pm UTC](https://community.geodynamics.org/t/model-boundary-oblique-to-axes/1745/1 "2021-03-22T15:16:29Z")

</div>

Hello,

I was wondering if Pylith allows model boundaries that are oblique to the x,y,z axes. I am trying to reproduce a “piece of cake” model (to mimic axisymmetric conditions) but I get the error “RuntimeError: Invalid null space vector 0 has zero norm.”  
If I comment the lines where I block the [0,1] degrees of freedom of the two oblique boundaries, Pylith runs without error, but the solution is not the one I am looking for.

Thanks,

Laura

---

<div class="post-metadata">

**Author:** ![baagaard](https://yyz2.discourse-cdn.com/flex036/user_avatar/community.geodynamics.org/baagaard/32/615_2.png) [@baagaard](https://community.geodynamics.org/u/baagaard)\
**Post date:** [March 22, 2021, 3:31pm UTC](https://community.geodynamics.org/t/model-boundary-oblique-to-axes/1745/2 "2021-03-22T15:31:18Z")

</div>

Model boundaries can be oblique to the coordinate axes. What are your boundary conditions? Can you provide a diagram/sketch of the problem you are trying to solve?

---

<div class="post-metadata">

**Author:** ![LauraBM](https://avatars.discourse-cdn.com/v4/letter/l/3bc359/32.png) [@LauraBM](https://community.geodynamics.org/u/LauraBM)\
**Post date:** [March 22, 2021, 3:49pm UTC](https://community.geodynamics.org/t/model-boundary-oblique-to-axes/1745/3 "2021-03-22T15:49:25Z")

</div>

Thanks for your quick reply. Please find attached a sketch. The model is 3D along the z direction.

 ![Booker_order1](https://canada1.discourse-cdn.com/flex036/uploads/geodynamics/original/1X/2d778a150cd48090966744712c742506c51ccf06.jpeg)  
The current angle is 22.5 (pi/8). I also tried an angle of 90 degrees (so that the normal to the boundaries has equal x and y components), but the problem persists.

Thanks again,

Laura

---

<div class="post-metadata">

**Author:** ![LauraBM](https://avatars.discourse-cdn.com/v4/letter/l/3bc359/32.png) [@LauraBM](https://community.geodynamics.org/u/LauraBM)\
**Post date:** [March 22, 2021, 3:50pm UTC](https://community.geodynamics.org/t/model-boundary-oblique-to-axes/1745/4 "2021-03-22T15:50:43Z")

</div>

I wanted, on the two oblique faces, to block the 0 and 1 degrees of freedom.

---

<div class="post-metadata">

**Author:** ![baagaard](https://yyz2.discourse-cdn.com/flex036/user_avatar/community.geodynamics.org/baagaard/32/615_2.png) [@baagaard](https://community.geodynamics.org/u/baagaard)\
**Post date:** [March 22, 2021, 3:55pm UTC](https://community.geodynamics.org/t/model-boundary-oblique-to-axes/1745/5 "2021-03-22T15:55:33Z")

</div>

When you say “block the 0 and 1 degrees of freedom”, do you mean you want to apply a Dirichlet (fixed displacement) boundary condition with both the x and y degrees of freedom fixed to the oblique boundaries? You also need a constraint on the z degree of freedom. Usually that would be applied to the bottom (-z) boundary.

---

<div class="post-metadata">

**Author:** ![LauraBM](https://avatars.discourse-cdn.com/v4/letter/l/3bc359/32.png) [@LauraBM](https://community.geodynamics.org/u/LauraBM)\
**Post date:** [March 22, 2021, 4:03pm UTC](https://community.geodynamics.org/t/model-boundary-oblique-to-axes/1745/6 "2021-03-22T16:03:58Z")

</div>

Yes, I meant that. Actually I applied Dirichlet boundary conditions on the two oblique faces (to block the x and y directions), and I blocked the z direction on the bottom face, but I got the error “RuntimeError: Invalid null space vector 0 has zero norm”. If I comment the constraints on the oblique faces, the model runs.

laura

---

<div class="post-metadata">

**Author:** ![baagaard](https://yyz2.discourse-cdn.com/flex036/user_avatar/community.geodynamics.org/baagaard/32/615_2.png) [@baagaard](https://community.geodynamics.org/u/baagaard)\
**Post date:** [March 22, 2021, 4:08pm UTC](https://community.geodynamics.org/t/model-boundary-oblique-to-axes/1745/7 "2021-03-22T16:08:12Z")

</div>

We need more information to help diagnose the problem. Please upload the `pylith_parameters.json` file that is generated by a run and provide a more complete diagram/sketch of the problem you are trying to solve. On your sketch, show all boundary conditions, loading, and material boundaries. A text description of the problem is also usually helpful.

---

<div class="post-metadata">

**Author:** ![LauraBM](https://avatars.discourse-cdn.com/v4/letter/l/3bc359/32.png) [@LauraBM](https://community.geodynamics.org/u/LauraBM)\
**Post date:** [March 22, 2021, 11:09pm UTC](https://community.geodynamics.org/t/model-boundary-oblique-to-axes/1745/8 "2021-03-22T23:09:30Z")

</div>

Sorry I think my explanation was not clear. What I would like to do is not to fix the x and y displacements of all nodes on the two oblique faces, but I would like to block the displacement normal to those faces, and allow tangential displacement, so that the model is axi-symmetric (with a small angle, the model is a sector of a circle). Neumann boundary conditions can be applied along normal and shear directions. Is there a way to do a similar thing with Dirichlet displacement conditions ?

Thanks

---

<div class="post-metadata">

**Author:** ![baagaard](https://yyz2.discourse-cdn.com/flex036/user_avatar/community.geodynamics.org/baagaard/32/615_2.png) [@baagaard](https://community.geodynamics.org/u/baagaard)\
**Post date:** [March 23, 2021, 1:30am UTC](https://community.geodynamics.org/t/model-boundary-oblique-to-axes/1745/9 "2021-03-23T01:30:57Z")

</div>

PyLith only allows constraint of the displacement in the direction of the coordinate axes; it does not allow constraint of the tangential displacement unless it is aligned with the coordinate axes.

So the smallest section you can use in an axisymmetric boundary value problem, making use of symmetry would have an angle of 90 degrees.

---

<div class="post-metadata">

**Author:** ![LauraBM](https://avatars.discourse-cdn.com/v4/letter/l/3bc359/32.png) [@LauraBM](https://community.geodynamics.org/u/LauraBM)\
**Post date:** [March 23, 2021, 8:14am UTC](https://community.geodynamics.org/t/model-boundary-oblique-to-axes/1745/10 "2021-03-23T08:14:43Z")

</div>

OK thanks
