add passive tracer

General scientific issues regarding ROMS

Moderators: arango, robertson

Post Reply
Message
Author
xrhuang
Posts: 6
Joined: Mon Apr 19, 2021 3:39 pm
Location: Fudan University

add passive tracer

#1 Unread post by xrhuang »

Hi,
I want to add passive tracer in ROMS.
Anyone can tell me how to do it ?
Especially, how to make the initial file of passive tracer.
Many thanks.

User avatar
kate
Posts: 4091
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: add passive tracer

#2 Unread post by kate »

First, you turn on T_PASSIVE and set NPT in roms.in. For the initial conditions, ANA_PASSIVE can be used, otherwise you'll have to put the initial conditions into a netcdf file. I've usually initialized with zero via ANA_PASSIVE, then used sources to introduce the passive dye locally. What is your strategy going to be?

xrhuang
Posts: 6
Joined: Mon Apr 19, 2021 3:39 pm
Location: Fudan University

Re: add passive tracer

#3 Unread post by xrhuang »

Thank you Kate.
I have turned on T_PASSIVE and set NPT =1. And I add dye_01 into the initial file.
Then, I run the model, but get the error message:
unable to find requested variable: dye_01_sflux
How can I figure it out?

User avatar
kate
Posts: 4091
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: add passive tracer

#4 Unread post by kate »

You need these as well:

Code: Select all

# define ANA_BPFLUX        /* analytical bottom passive tracers fluxes */
# define ANA_SPFLUX
unless you want the top and bottom tracer fluxes to be non-zero.

User avatar
wilkin
Posts: 922
Joined: Mon Apr 28, 2003 5:44 pm
Location: Rutgers University
Contact:

Re: add passive tracer

#5 Unread post by wilkin »

There is an FAQ
https://www.myroms.org/wiki/Frequently_ ... tracers.3F
and also guidance on what to do if you want passive tracers in your rivers
https://www.myroms.org/wiki/River_Runoff
John Wilkin: DMCS Rutgers University
71 Dudley Rd, New Brunswick, NJ 08901-8521, USA. ph: 609-630-0559 jwilkin@rutgers.edu

xrhuang
Posts: 6
Joined: Mon Apr 19, 2021 3:39 pm
Location: Fudan University

Re: add passive tracer

#6 Unread post by xrhuang »

Thank you, Kate and Wilkin. It works.
I am not sure whether this result present the concentration of dye or not?
How can I do if I want to simulate only the Lagrange motion of particles, rather than the diffusion of the dye concentration?

User avatar
kate
Posts: 4091
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: add passive tracer

#7 Unread post by kate »

The FLOATS option is a whole different can of worms. Is that what you want? Online or offline?

xrhuang
Posts: 6
Joined: Mon Apr 19, 2021 3:39 pm
Location: Fudan University

Re: add passive tracer

#8 Unread post by xrhuang »

Online
How to use FLOATS option?

User avatar
kate
Posts: 4091
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: add passive tracer

#9 Unread post by kate »

I see the wiki page on FLOATS is still empty. There is probably something about floats in the manual, though.

User avatar
wilkin
Posts: 922
Joined: Mon Apr 28, 2003 5:44 pm
Location: Rutgers University
Contact:

Re: add passive tracer

#10 Unread post by wilkin »

Read the GLOSSARY at the end of one of the floats files, e.g. floats_upwelling.in, in the External directory. It is quite comprehensive.
John Wilkin: DMCS Rutgers University
71 Dudley Rd, New Brunswick, NJ 08901-8521, USA. ph: 609-630-0559 jwilkin@rutgers.edu

Post Reply