# Simple cube under compression (elastic regime)

**URL:** <https://community.freefem.org/t/simple-cube-under-compression-elastic-regime/1831>\
**Category:** General Discussion\
**Created:** [June 20, 2022, 11:16pm UTC](https://community.freefem.org/t/simple-cube-under-compression-elastic-regime/1831 "2022-06-20T23:16:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![baezacaljo](https://avatars.discourse-cdn.com/v4/letter/b/d2c977/32.png) [@baezacaljo](https://community.freefem.org/u/baezacaljo)\
**Post date:** [June 20, 2022, 11:16pm UTC](https://community.freefem.org/t/simple-cube-under-compression-elastic-regime/1831/1 "2022-06-20T23:16:09Z")

</div>

Hello dear all.

Let me tell you that today I started looking at freefem. I am fluid dynamic guy (before I was working with openFoam). Basically I am quite new into solids.

Look I installed freefem on windows (my boss uses windows only). I tested the example of a bem under gravity force and the program run smoothly. However, I saw that such geometry was created inside freefem, and also I noticed that a load is applied.

Therefore I was wondering if there is a tutorial on how to do simulation importing and external geometry of course with its patches like bottomWall and topWall the application of the boundary conditions and so on. But applying a certain displacement, (remember in elestic regime).

I just wanna start with a really simple geometry like a cube. Later on is going to be a really complex geometry.

Please share any info.

Sorry if I am asking to much but I really wanna get into free fem and I spent the whole day trying to understand the software. I don’t wanna go into commercial softwares.

Thanks in advance  
Alberto

---

<div class="post-metadata">

**Author:** ![frederichecht](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/frederichecht/32/15_2.png) [@frederichecht](https://community.freefem.org/u/frederichecht)\
**Post date:** [June 22, 2022, 10:01am UTC](https://community.freefem.org/t/simple-cube-under-compression-elastic-regime/1831/2 "2022-06-22T10:01:04Z")

</div>

In my slide of the freefem++ day in

> <https://github.com/FreeFem/FreeFem-days/blob/master/2019/slides/FH-edp.zip>

slide 78 you a a full example and the source of the example isin directory edp2/beam-3d.edp

---

<div class="post-metadata">

**Author:** ![baezacaljo](https://avatars.discourse-cdn.com/v4/letter/b/d2c977/32.png) [@baezacaljo](https://community.freefem.org/u/baezacaljo)\
**Post date:** [June 22, 2022, 2:52pm UTC](https://community.freefem.org/t/simple-cube-under-compression-elastic-regime/1831/3 "2022-06-22T14:52:40Z")

</div>

Dear Professor thank you very much.

Now lets start reading and understanding the full code.

Best Regards  
Alberto Campuzano
