ICON Community Interface 0.4.0
Loading...
Searching...
No Matches
point_source Namespace Reference

Test plugin for the ICON Community Interface (ComIn) More...

Functions

 message (message_string, rank)
 Short helper function to print a message on one PE.
 
 lonlat2xyz (lon, lat)
 
 pntsrc_constructor ()
 Constructor: Get pointers to tracers and descriptive data.
 
 pntsrc_init ()
 
 pntsrc_emission ()
 Emission for pntsrc on domain 1.
 
 pntsrc_updatePhysTends ()
 Update tracer from turb and conv tendencies for domain 1.
 
 pntsrc_destructor ()
 

Variables

 tracer
 
 True
 
 tracer_turb
 
 tracer_conv
 
int jg = 1
 
int msgrank = 0
 
float pntsrc_lon = 141.0325
 
float pntsrc_lat = 37.421389
 

Detailed Description

Test plugin for the ICON Community Interface (ComIn)

The point_source plugin shows an example for

  • Requesting a tracer that participates in ICON's turbulence and convection scheme
  • Adding point source emissions to this tracer
  • Using KDTree of scipy to locate the point source
  • Use decomp_domain to check if the point source is local to the PE
  • Updating the tracer with tendencies received from ICON's turbulence and convection scheme
Authors
12/2023 :: ICON Community Interface comin.nosp@m.@ico.nosp@m.n-mod.nosp@m.el.o.nosp@m.rg

SPDX-License-Identifier: BSD-3-Clause

Please see the file LICENSE in the root of the source tree for this code. Where software is supplied by third parties, it is indicated in the headers of the routines.

Function Documentation

◆ lonlat2xyz()

point_source.lonlat2xyz ( lon,
lat )

Definition at line 42 of file point_source.py.

Here is the caller graph for this function:

◆ message()

point_source.message ( message_string,
rank )

Short helper function to print a message on one PE.

Definition at line 36 of file point_source.py.

Here is the caller graph for this function:

◆ pntsrc_constructor()

point_source.pntsrc_constructor ( )

Constructor: Get pointers to tracers and descriptive data.

Definition at line 48 of file point_source.py.

Here is the call graph for this function:

◆ pntsrc_destructor()

point_source.pntsrc_destructor ( )

Definition at line 128 of file point_source.py.

Here is the call graph for this function:

◆ pntsrc_emission()

point_source.pntsrc_emission ( )

Emission for pntsrc on domain 1.

Definition at line 98 of file point_source.py.

◆ pntsrc_init()

point_source.pntsrc_init ( )

Definition at line 69 of file point_source.py.

Here is the call graph for this function:

◆ pntsrc_updatePhysTends()

point_source.pntsrc_updatePhysTends ( )

Update tracer from turb and conv tendencies for domain 1.

Definition at line 106 of file point_source.py.

Variable Documentation

◆ jg

int point_source.jg = 1

Definition at line 30 of file point_source.py.

◆ msgrank

int point_source.msgrank = 0

Definition at line 31 of file point_source.py.

◆ pntsrc_lat

float point_source.pntsrc_lat = 37.421389

Definition at line 33 of file point_source.py.

◆ pntsrc_lon

float point_source.pntsrc_lon = 141.0325

Definition at line 32 of file point_source.py.

◆ tracer

point_source.tracer

Definition at line 27 of file point_source.py.

◆ tracer_conv

point_source.tracer_conv

Definition at line 27 of file point_source.py.

◆ tracer_turb

point_source.tracer_turb

Definition at line 27 of file point_source.py.

◆ True

point_source.True

Definition at line 27 of file point_source.py.