[Nek5000-users] lambda2

nek5000-users at lists.mcs.anl.gov nek5000-users at lists.mcs.anl.gov
Tue Jul 27 09:42:49 CDT 2010


Fred,

Typical usage (for me) would be:

       subroutine userchk

       call lambda2(t(1,1,1,1,1))

       ifto = .true.


What does this do ?

It puts the scalar field lambda2 into the location where
temperature normally sits (t(....,1)) and tells nek5000 that
it should output temperature as a scalar field.

Note that this of course assumes that you are not computing
temperature as part of an associated heat transfer problem.
In that case, something different is required -- one possibility
is to put it into t(....,2), which is the location of the first
passive scalar.   In this case, however, you need to make
certain that ldimt > 1 (in SIZE) and then tell nek to output
more than 1 scalar field.   (I believe this is via ipsco... but
would have to check on that.)

The best approach is somewhat dependent on what you are running.

hth,

Paul

On Tue, 27 Jul 2010, nek5000-users at lists.mcs.anl.gov wrote:

> dear neks,
>
> in the source file postpro.f i found the following subroutine:
>
>     subroutine lambda2(l2)
> c
> c     Generate Lambda-2 vortex of Jeong & Hussein, JFM '95
> c
> ...
>
> but it is not used in the code and i wanted calculate it for some 
> visualizations. may you can explain me how i can use it. because i tried just 
> to call it in the usrchk subroutine but then i get an error message 
> (segmentation fault...).
>
> best, fred
>
> _______________________________________________
> Nek5000-users mailing list
> Nek5000-users at lists.mcs.anl.gov
> https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users
>



More information about the Nek5000-users mailing list