Daniel Smith
COMSOL Employee
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
2012年2月14日 GMT-5 08:54
You need to add an auxiliary dependent variable and set the source to 1. This will solve the additional ODE per particle:
d(rp)/dt = 1
which means rp is the residence time. After solving, create a histogram of rp at the final timestep. This will give you the residence time distribution.
You need to add an auxiliary dependent variable and set the source to 1. This will solve the additional ODE per particle:
d(rp)/dt = 1
which means rp is the residence time. After solving, create a histogram of rp at the final timestep. This will give you the residence time distribution.
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
2012年2月20日 GMT-5 15:27
I wonder if you can explain me in which step should I add the new variable. Is it when defining the boundary conditions or when definining the time dependent steps?
Thanks in advantage.
I wonder if you can explain me in which step should I add the new variable. Is it when defining the boundary conditions or when definining the time dependent steps?
Thanks in advantage.
Please login with a confirmed email address before reporting spam
Posted:
9 years ago
2015年8月19日 GMT-4 14:14
Hi Dan,
And how is it possible to calculate mean and variance of residence time of the particles?
I mean how to draw these graphs in comsol?
Sepideh
Hi Dan,
And how is it possible to calculate mean and variance of residence time of the particles?
I mean how to draw these graphs in comsol?
Sepideh
Daniel Smith
COMSOL Employee
Please login with a confirmed email address before reporting spam
Posted:
9 years ago
2015年8月19日 GMT-4 15:28
Suppose you have an auxiliary dependent variable called rp for the residence time. The mean residence time would be given by:
fpt.fptaveop1(rp)
for a Particle Tracing for Fluid Flow interface with tag fpt. fptaveop1 is an average operator defined over the particles (see the Component Couplings section on P34 of the V5.1 Particle Tracing Module User's Guide for more info).
The variance would be defined as:
fpt.fptaveop1(rp^2)-fpt.fptaveop1(rp)^2
These can be plotted using a 1D Plot Group and a Global plot type.
Suppose you have an auxiliary dependent variable called rp for the residence time. The mean residence time would be given by:
fpt.fptaveop1(rp)
for a Particle Tracing for Fluid Flow interface with tag fpt. fptaveop1 is an average operator defined over the particles (see the Component Couplings section on P34 of the V5.1 Particle Tracing Module User's Guide for more info).
The variance would be defined as:
fpt.fptaveop1(rp^2)-fpt.fptaveop1(rp)^2
These can be plotted using a 1D Plot Group and a Global plot type.