# Programming

**URL:** https://discourse.channelflow.ch/c/programming/8.md

[Latest](https://discourse.channelflow.ch/latest.md) · [Categories](https://discourse.channelflow.ch/categories.md)

---

## [About the Programming category](https://discourse.channelflow.ch/t/about-the-programming-category/17)

<div class="topic-metadata">

**Author:** [@john.gibson](https://discourse.channelflow.ch/u/john.gibson)\
**Replies:** 0

</div>

Discussions about writing your own channelflow programs using the channelflow libraries.

---

## [Free-slip boundary condition](https://discourse.channelflow.ch/t/free-slip-boundary-condition/190)

<div class="topic-metadata">

**Author:** [@duc.nguyen](https://discourse.channelflow.ch/u/duc.nguyen)\
**Replies:** 0\
**Last updated:** [January 10, 2025, 4:00am UTC](https://discourse.channelflow.ch/t/free-slip-boundary-condition/190 "2025-01-10T04:00:39Z")

</div>

Dear all, I am interested in the free-slip boundary condition at walls. So there is any way to do this B.C. in Channelflow? Thanks a lot! Duc

---

## [Question about dot product](https://discourse.channelflow.ch/t/question-about-dot-product/131)

<div class="topic-metadata">

**Author:** [@Sebastien](https://discourse.channelflow.ch/u/Sebastien)\
**Replies:** 1\
**Last updated:** [December 21, 2021, 9:43am UTC](https://discourse.channelflow.ch/t/question-about-dot-product/131 "2021-12-21T09:43:35Z")

</div>

Dear channelflow developers, I have a question concerning the function dot() in diffops.cpp I have troubles understanding the computation of fdotg when f.Nd= 3 and g.Nd = 9. fdotg(nx, ny, nz, 0) += f(nx, ny, nz, i) \*…

---

## [Parallelization of the example scripts](https://discourse.channelflow.ch/t/parallelization-of-the-example-scripts/122)

<div class="topic-metadata">

**Author:** [@fiddlerkrt](https://discourse.channelflow.ch/u/fiddlerkrt)\
**Replies:** 4\
**Last updated:** [August 9, 2021, 2:57pm UTC](https://discourse.channelflow.ch/t/parallelization-of-the-example-scripts/122 "2021-08-09T14:57:30Z")

</div>

Hi all, Apologies for my ignorance, but I’d like to run the couette flow example you have provided on multiple processors but I’m not sure how to go about running the code in parallel rather than in serial. Could you pl…

---

## [FlowField class memory management](https://discourse.channelflow.ch/t/flowfield-class-memory-management/107)

<div class="topic-metadata">

**Author:** [@PratikAghor](https://discourse.channelflow.ch/u/PratikAghor)\
**Replies:** 1\
**Last updated:** [March 4, 2021, 6:26pm UTC](https://discourse.channelflow.ch/t/flowfield-class-memory-management/107 "2021-03-04T18:26:59Z")

</div>

Hi all, I was doing a computation which involved calling a series of FlowFields in a loop and the minimal code was something as follows: for (Real ta = 0; ta \<= T; ta += n \* dt) { for (Real tb = 0; tb \<= T; t…

---

## [Fourier Coefficients in y](https://discourse.channelflow.ch/t/fourier-coefficients-in-y/98)

<div class="topic-metadata">

**Author:** [@chihin](https://discourse.channelflow.ch/u/chihin)\
**Replies:** 3\
**Last updated:** [June 12, 2020, 7:36am UTC](https://discourse.channelflow.ch/t/fourier-coefficients-in-y/98 "2020-06-12T07:36:59Z")

</div>

Hi all, I am new to both c++ and channelflow so I would advice some patience. I am trying to extract the fourier coefficients in both x and z direction ( \\hat u(kx,y,kz) ) which are function of y. On channelflow 1.0, I…

---

## [2D flow simulations](https://discourse.channelflow.ch/t/2d-flow-simulations/76)

<div class="topic-metadata">

**Author:** [@Vilda](https://discourse.channelflow.ch/u/Vilda)\
**Replies:** 5\
**Last updated:** [September 12, 2019, 8:48pm UTC](https://discourse.channelflow.ch/t/2d-flow-simulations/76 "2019-09-12T20:48:18Z")

</div>

Hi, I was wondering if it’s possible to adapt Channelflow for purely 2D configurations? It doesn’t seem that Nz=0 is supported. Thanks for your help, Vilda

---

## [Troubling output from a modified simulateflow program](https://discourse.channelflow.ch/t/troubling-output-from-a-modified-simulateflow-program/38)

<div class="topic-metadata">

**Author:** [@Aksh](https://discourse.channelflow.ch/u/Aksh)\
**Replies:** 5\
**Last updated:** [November 3, 2018, 7:30am UTC](https://discourse.channelflow.ch/t/troubling-output-from-a-modified-simulateflow-program/38 "2018-11-03T07:30:05Z")

</div>

I write regarding an issue that popped up in my usage of both the old and the new channelflow. My modified files are attached to this post. The focus of my research is the Poiseuille flow. The first changes I made were …
