Input Sources/Sinks forcing file

General scientific issues regarding ROMS

Moderators: arango, robertson

Post Reply
Message
Author
antoinemarie
Posts: 52
Joined: Mon Mar 07, 2011 5:37 pm
Location: HYDRATEC

Input Sources/Sinks forcing file

#1 Post by antoinemarie » Fri Feb 21, 2014 10:18 am

Hi ROMS users!

I have a question about the input Sources/Sinks forcing file :

- Is it possible to make a source/sink which dépends on the value of a model's point? For instance, I make a source, and I want this source has the same temperature has a particular point of my model. So it implies that the temperature of my source dépends on the time too.

I have a second question about the analytical files :

- What is the meaning of this condition in the analytical files:
"IF (DOMAIN(ng)%NorthEast_Test(tile)) THEN"

Thanks in advance for your reply,

Antoine

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

Re: Input Sources/Sinks forcing file

#2 Post by kate » Mon Feb 24, 2014 8:03 pm

The answer to your first question is that ROMS does not support what you are asking for. You have the source code, though, so you could hack it to do that. It might not be numerically well-behaved, however.

Code: Select all

IF (DOMAIN(ng)%NorthEast_Test(tile)) THEN
This is just a test for whether the Northeastern corner of the grid is in the current tile.

User avatar
m.hadfield
Posts: 520
Joined: Tue Jul 01, 2003 4:12 am
Location: NIWA

Re: Input Sources/Sinks forcing file

#3 Post by m.hadfield » Tue Feb 25, 2014 1:22 am

antoinemarie wrote:For instance, I make a source, and I want this source has the same temperature has a particular point of my model.
Is the particular point the point at which the source is being applied? If so, you can just set LtraceSrc(1) to F in the input file.

User avatar
jivica
Posts: 130
Joined: Mon May 05, 2003 2:41 pm
Location: The University of Western Australia, Perth, Australia

Re: Input Sources/Sinks forcing file

#4 Post by jivica » Wed Feb 26, 2014 8:51 am

What I did for one test case of LNG (temp) impact to the environment was:
run the model with source but neutral with respect to temp (as suggested switch F for temp).
Before that switch option, many years ago :), I had to run model without point source and saved station file with temp at the position of the future point source, then the same run of the model with point source as before but set temp from station file. Nowdays, I would run model with source but (F for temp), save again in station file and the same stuff with cooled dt source of LNG ....
Cheers,
Ivica

antoinemarie
Posts: 52
Joined: Mon Mar 07, 2011 5:37 pm
Location: HYDRATEC

Re: Input Sources/Sinks forcing file

#5 Post by antoinemarie » Thu Feb 27, 2014 10:26 am

Thank you for your reply,

I have decided to hack the code. The particular point is not the point which the source is being applied. I have defined the temperature in ANA_PSOURCE, then I apply the temperature like that

SOURCES(ng)%Tsrc(is,k,itemp)=t(i,j,k,nnew,itemp)

I think it is correct.

Antoine

Post Reply