# Cylindrical coordinate for flow simulation

**URL:** https://community.freefem.org/t/cylindrical-coordinate-for-flow-simulation/1941
**Category:** General Discussion
**Created:** [August 12, 2022, 6:34am UTC](https://community.freefem.org/t/cylindrical-coordinate-for-flow-simulation/1941 "2022-08-12T06:34:07Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![zese](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/zese/32/917_2.png) [@zese](https://community.freefem.org/u/zese)
#### Post date: [August 12, 2022, 6:34am UTC](https://community.freefem.org/t/cylindrical-coordinate-for-flow-simulation/1941/1 "2022-08-12T06:34:07Z")

</div>

Dear all

I want to solve a flow inside a pipe in 3D and I have (r,theta,z) as my coordinate. how I can define d/dtheta or d/dr in freefem?

BR

---

<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: [August 12, 2022, 11:50am UTC](https://community.freefem.org/t/cylindrical-coordinate-for-flow-simulation/1941/2 "2022-08-12T11:50:02Z")

</div>

If you are in 3d you are using x,y,z but ca can recall as r,theta, z  
when of domain is a box [0,R]x[0,2\*pi],[Zmin,ZMax]  
with periodic boundary condition on theta.

---

<div class="post-metadata">

### Author: ![Markov](https://avatars.discourse-cdn.com/v4/letter/m/f1d935/32.png) [@Markov](https://community.freefem.org/u/Markov)
#### Post date: [March 30, 2023, 1:44pm UTC](https://community.freefem.org/t/cylindrical-coordinate-for-flow-simulation/1941/3 "2023-03-30T13:44:06Z")

</div>

Hello, did you succeed in applying a periodic boundary condition on theta?

---

<div class="post-metadata">

### Author: ![zese](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/zese/32/917_2.png) [@zese](https://community.freefem.org/u/zese)
#### Post date: [April 2, 2023, 7:07am UTC](https://community.freefem.org/t/cylindrical-coordinate-for-flow-simulation/1941/4 "2023-04-02T07:07:50Z")

</div>

Hi Markov,

Unfortunately no because the subject has changed. I wish you find the answer.
