# Does the fenics-adapter support 3d case?

**URL:** <https://precice.discourse.group/t/does-the-fenics-adapter-support-3d-case/696>\
**Category:** Official adapters and tutorials\
**Tags:** fenics\
**Created:** [August 27, 2021, 3:08am UTC](https://precice.discourse.group/t/does-the-fenics-adapter-support-3d-case/696 "2021-08-27T03:08:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zhuwenguo](https://avatars.discourse-cdn.com/v4/letter/z/ba9def/32.png) [@zhuwenguo](https://precice.discourse.group/u/zhuwenguo)\
**Post date:** [August 27, 2021, 3:08am UTC](https://precice.discourse.group/t/does-the-fenics-adapter-support-3d-case/696/1 "2021-08-27T03:08:25Z")

</div>

Hello everyone, I noticed that in the fenics-adapter github page, it says " preCICE-adapter for the open source computing platform FEniCS. Note: The adapter **currently only supports 2D simulations in FEniCS**", however in the “get\_fenics\_vertices” function I found :

> if dims == 3:  
> coords.append([v.x(0), v.x(1), v.x(2)])

It seems support 3d case. so I am wondering whether the current version of fenics-adapter support 3d case?

Best regards.  
wenguo.

---

<div class="post-metadata">

**Author:** ![uekerman](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/uekerman/32/2199_2.png) [@uekerman](https://precice.discourse.group/u/uekerman)\
**Post date:** [August 27, 2021, 8:26am UTC](https://precice.discourse.group/t/does-the-fenics-adapter-support-3d-case/696/2 "2021-08-27T08:26:00Z")

</div>

Hi @zhuwenguo

3D is work in progress. Some missing functionality is added here:

> <https://github.com/precice/fenics-adapter/pull/133>
>
> This PR adds 3D case handling capability to the adapter. Currently only 3D FSI s…erial cases are tested. The testing is done here: https://github.com/precice/tutorials/pull/222. Closes https://github.com/precice/fenics-adapter/issues/1

And a testcase here:

> <https://github.com/precice/tutorials/pull/222>
>
> \<!-- Please submit your Pull Request to the \`develop\` branch.
> 
> It may help to …have a look at the file \`CONTRIBUTING.md\` for a few hints and guidelines. --\>
> 
> This PR adds FEniCS as a solid participant to the \`elastic-tube-3d\` case.

AFAIK, there is still some implementation or testing missing for parallel 3D cases. Any feedback or testing is very welcome.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/precice/original/1X/67d2a5fa6f80e597e2267ff17fa8c1673cd11caa.svg) [@system](https://precice.discourse.group/u/system)\
**Post date:** [August 30, 2021, 2:39pm UTC](https://precice.discourse.group/t/does-the-fenics-adapter-support-3d-case/696/3 "2021-08-30T14:39:17Z")

</div>

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
