|
[Sponsors] |
April 30, 2024, 13:36 |
How to set up a semi-permeable interface?
|
#1 |
New Member
Join Date: Mar 2024
Posts: 6
Rep Power: 2 |
I am attempting to simulate an alkaline water electrolyzer, which has a porous separator that is supposed to block the flow of gases (hydrogen, oxygen) but not the liquid solution (water + potassium hydroxide). Here's what I tried so far, unsuccessfully:
Code:
DEFINE_PROFILE(mass_fraction_bc, t, i) { face_t f; cell_t c1; real y; begin_f_loop(f, t) { c1 = F_C1(f, t); y = C_YI(c1, t, i); F_PROFILE(f, t, i) = y; } end_f_loop(f, t) } It seems this would be something so simple to do. Any help is appreciated. Last edited by voidcrow; May 3, 2024 at 12:06. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Using gnuplot to plot probe data | Rotidpor | OpenFOAM | 3 | March 9, 2022 05:44 |
Wind turbine simulation | Saturn | CFX | 58 | July 3, 2020 01:13 |
does Hyperthreading affect the application of UDF? | SJSW | Fluent UDF and Scheme Programming | 11 | October 10, 2018 22:28 |
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found | piprus | OpenFOAM Installation | 22 | February 25, 2010 13:43 |
how to set the interface? | poiu | FLUENT | 13 | September 8, 2009 03:40 |