external forcing field

45 views
Skip to first unread message

Ulf Graewe

unread,
Jun 11, 2020, 8:38:35 AM6/11/20
to FABM-users
Dear all,
I would like to to use bb/passive in combination with an external surface flux file. I will do that in GETM. But I have no clue on how to do it.
There is only a cryptic line in GETM:
'remember to add external_surface_flux model to fabm.yaml'
but how to do that?

Could someone guide me?

My fabm.yaml reads:
instances:
  tracer:
    model: bb/passive
    parameters:
      vertical_velocity: -2.0           
    initialization:
      c: 0.0

Best,
ulf

--
Ulf Gräwe, Dr.

fon: +49-381-5197-358
fax: +49-381-5197-480
e-mail: ulf.g...@io-warnemuende.de
website: https://www.io-warnemuende.de/ulf-graewe-en.html
ORCID iD: https://orcid.org/0000-0003-4007-9764

Leibniz Institute for Baltic Sea Research Warnemünde
Physical Oceanography and Instrumentation
Seestrasse 15
18119 Rostock
Germany

Jorn Bruggeman

unread,
Jun 11, 2020, 9:07:16 AM6/11/20
to fabm-...@googlegroups.com

Hi Ulf,

 

Yes that’s one topic where we should add a wiki page about (models built into FABM for common functionality). Anyway, the idea is to add a “surface flux” model like so (under instances):

 

  tracer_flux:

    model: external_surface_flux

    coupling :

      target : tracer/c

 

That will leave you with a dependency for the surface flux (in tracer/m2/s), named tracer_flux/flux (or tracer_flux/flux). Typically you would then provide that 2D field through the host, i.e., GETM.

 

Scanning the GETM code, it looks like you should then provide a NetCDF file with that variable. The path to the file is configured through fabm_surface_flux_file in getm_fabm_nml. The variable must be named “tracer_flux” in your case. But as far as I can tell, the current GETM code only allows that field to be a monthly climatology…

 

Cheers,

 

Jorn

--
You received this message because you are subscribed to the Google Groups "FABM-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fabm-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fabm-users/d94e3f18-7706-e712-f997-13dfcb6c7444%40io-warnemuende.de.

Jorn Bruggeman

unread,
Jun 11, 2020, 9:16:47 AM6/11/20
to fabm-...@googlegroups.com

Addendum: that dependency for the surface flux would be named tracer_flux/flux or tracer_flux_flux. It is accessible by the host under both names. GETM uses the latter.

 

J

Ulf Graewe

unread,
Jun 11, 2020, 9:36:41 AM6/11/20
to fabm-...@googlegroups.com
Hi Jorn,
thanks!
It works like a charm.

Cheers,
ulf
Reply all
Reply to author
Forward
0 new messages