CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   FreeFem++ - Pedestrian Flow (https://www.cfd-online.com/Forums/main/131951-freefem-pedestrian-flow.html)

jakubstary March 23, 2014 08:40

FreeFem++ - Pedestrian Flow
 
Hi,

I need to solve the first order macroscopic pedestrian flow model in 2D in FreeFem:

rho_t + div(rho*V(rho)*mu) = 0,

where V(rho) is some speed-density relation and mu is constant for my case, but I can't figure out, how to write the code of my problem in FreeFem.

I think that it will be:
Code:

problem pedestrian(rho, rhoh) =
int2d(Th)( rho*rhoh/dt )
+int2d(Th)( ....... )
+on (some boundary condition);

Please, can you help me with it? I'm a beginner in FreeFem.
Thanks.


All times are GMT -4. The time now is 20:27.