# Examples of 1D problems in GetFEM

**URL:** <https://getfem.discourse.group/t/examples-of-1d-problems-in-getfem/118>\
**Category:** General\
**Created:** [May 31, 2026, 2:09pm UTC](https://getfem.discourse.group/t/examples-of-1d-problems-in-getfem/118 "2026-05-31T14:09:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Francesco](https://avatars.discourse-cdn.com/v4/letter/f/e47c2d/32.png) [@Francesco](https://getfem.discourse.group/u/Francesco)\
**Post date:** [May 31, 2026, 2:09pm UTC](https://getfem.discourse.group/t/examples-of-1d-problems-in-getfem/118/1 "2026-05-31T14:09:36Z")

</div>

I would like to simulate a 1D nonlinear ODE on an interval, with Dirichlet boundary conditions.

Is it possible to do this in GetFEM, using the classical GWFL? How to visualize the solution, since exporting VTU output files does not make sense for 1D problems?

Thanks.

---

<div class="post-metadata">

**Author:** ![Konstantinos.Poulios](https://avatars.discourse-cdn.com/v4/letter/k/ac91a4/32.png) [@Konstantinos.Poulios](https://getfem.discourse.group/u/Konstantinos.Poulios)\
**Post date:** [June 8, 2026, 9:04pm UTC](https://getfem.discourse.group/t/examples-of-1d-problems-in-getfem/118/2 "2026-06-08T21:04:24Z")

</div>

just for future reference, of course you can create a 1D mesh, in either a 1D space, or in a 2D space, or in a 3D space, or in a 4D space, or …

When exporting a mesh to vtu, irrespective whether the mesh is 1D, 2D or 3D, in the vtu file it will be inside a 3D space.
