CFD Online Discussion Forums

CFD Online Discussion Forums (
-   FLUENT (
-   -   Tissue Engineering (

timjm February 25, 2013 12:08

Tissue Engineering
I had a quick question. I am just trying to model "uptake" of a compound by biological cells on one of the walls.

I wasnt planning on using the transport and species reaction setup because I then need a complex reaction calculation to occur at the site of uptake, i.e. a wall face.

Which UDF function should I use for this? I am guessing it is more of an adsorption problem than a surface reaction problem.



timjm February 25, 2013 16:18

As an update I am using the DEFINE_PROFILE macro. I want to try it to setup an inlet concentration first, and then use if to specify a flux at another wall once I know I have it working.

I tried the following code, which seems to run, but the concentration within the flow volume, but it seems that the whole flow volume is then immediately filled at the same concentration, specified by the UDF.


#include "udf.h"

UDF that sets the inlet concentration

/* define the constants */
#define CON 4.68 /* []= mol/m3 */

/* DEFINE_PROFILE is a fluent defined macro to define a custom boundary profile thatvaries as a function of spatial coordinates or time */
DEFINE_PROFILE(face_conc, thread, position)/* define O2 inlet conc */
face_t f; /* is an integer index that identifies a particular face within a given thread */
begin_f_loop(f, thread) /* starts a loop */
/* F_Profile specifies the function */
F_PROFILE(f, thread, position) = CON; /* In this case equal to a constant defined earlier */
end_f_loop(f, thread) /* end of the loop */

All times are GMT -4. The time now is 23:04.