wind forcing specification

General scientific issues regarding ROMS

Moderators: arango, robertson

Post Reply
Message
Author
wenping

wind forcing specification

#1 Unread post by wenping »

I wanted to simulate wind effect on inlet dynamics, only the wind forcing was specified.
based on Kate's suggestion i generated a forcing file containing sustr and svstr only. when i ran the model, it showed
unable to find requested variable: shflux
in file:
frc_inlet.nc
i don't want to specify any heat flux in my model. so could anyone help to tell me how to turn off this requirement? thanks
my *.h is as follows:
#define UV_ADV
#define UV-U3ADV_SPLIT
#define UV_SMAGORINSKY
#define UV_QDRAG
#define SOLVE3D
#define CURVGRID
#define MASKING
#define AVERAGES
#define STATIONS
#define SPLINES
#define ANA_INITIAL
#define MY25_MIXING
#define NORTHERN_WALL
#define WESTERN_WALL
#define EASTERN_WALL
#define SOUTH_M3RADIATION
#undef ANA_STFLUX
#undef BULK_FLUXES

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

Re: wind forcing specification

#2 Unread post by kate »

wenping wrote:I wanted to simulate wind effect on inlet dynamics, only the wind forcing was specified.
based on Kate's suggestion i generated a forcing file containing sustr and svstr only. when i ran the model, it showed
unable to find requested variable: shflux
in file:
frc_inlet.nc
i don't want to specify any heat flux in my model. so could anyone help to tell me how to turn off this requirement? thanks
my *.h is as follows:
#define UV_ADV
#define UV-U3ADV_SPLIT
#define UV_SMAGORINSKY
#define UV_QDRAG
#define SOLVE3D
#define CURVGRID
#define MASKING
#define AVERAGES
#define STATIONS
#define SPLINES
#define ANA_INITIAL
#define MY25_MIXING
#define NORTHERN_WALL
#define WESTERN_WALL
#define EASTERN_WALL
#define SOUTH_M3RADIATION
#undef ANA_STFLUX
#undef BULK_FLUXES
I see you have "#undef ANA_STFLUX". That means if any part of the code wants heat flux, it will look in the forcing file. You need to set the surface heat (and salt) flux to something, even if that something is zero in ana_stflux.h.
Also, do you really have "#define UV-U3ADV_SPLIT"? Try changing the "-" to "_". There is no real spell check on the cpp defines, unfortunately.

Post Reply