This shows you the differences between two versions of the page.
programming:averaging_profiles [2010/05/05 07:54] hansjoerg created |
programming:averaging_profiles [2010/05/12 10:43] (current) hansjoerg |
||
---|---|---|---|
Line 15: | Line 15: | ||
I saw that there are member functions u.profile and u.mean, which probably can be used, but i am not sure how to use them correctly and i could not find an | I saw that there are member functions u.profile and u.mean, which probably can be used, but i am not sure how to use them correctly and i could not find an | ||
entry in the doc. | entry in the doc. | ||
- | * u.mean(): calculates the mean velocity of the whole system averaging in x,y,z direction. Is the base flow included? If the baseflow is not included can i just add it bz creating a new field u1 and making u1+=dns.base() | + | * u.mean(): calculates the mean velocity of the whole system averaging in x,y,z direction. Is the base flow included? |
+ | * If the baseflow is not included can i just add it by creating a new field u1 dns.Ubase(). | ||
+ | * How do i extract the baseflow from a simulation initialized with PlaneCouette or Parabola instead of a given profile | ||
* u.profile(mx,my,i): what this function calculates exactly? | * u.profile(mx,my,i): what this function calculates exactly? | ||
* a brute force method would be to iterate over the box and make the calculations for each evaluation timestep, but it would be nice to use the already predefined functions available. | * a brute force method would be to iterate over the box and make the calculations for each evaluation timestep, but it would be nice to use the already predefined functions available. |