Warm Bubble Initialization Several Hours into a Simulation

Topics related to running an idealized case
Post Reply
wflams
Posts: 1
Joined: Wed Nov 28, 2018 8:45 pm

Warm Bubble Initialization Several Hours into a Simulation

Post by wflams » Wed Nov 28, 2018 8:50 pm

Hi All,

I'm trying to initialize a warm bubble in the idealized supercell simulation several hours into a simulation (rather than at time = 0). Does anyone have experience doing something similar? Thanks!

sudheer
Posts: 14
Joined: Thu Jan 17, 2019 3:53 pm
Location: San Antonio, TX
Contact:

Re: Warm Bubble Initialization Several Hours into a Simulation

Post by sudheer » Wed Jan 30, 2019 7:58 pm

Hello,

I have no direct experience with supercell simulations but have faced a similar issue when I wanted to release the tracers at a specific time and for a user given duration. I had to create two new namelist variables (tracer_start_time and tracer_run_time) and modify the initialize and solver code accordingly to start the tracers at a user-specified time. At every timestep I would check if the current time is greater than the user specified start_time and if it is, I would start releasing the tracers. Similar to mine, In your case, I would assume modifying the module_initialize code for that ideal case and then the solve file might help.

Hope this helps.

Sudheer
Ph.D. Candidate
Univ of Texas at San Antonio
Texas, USA

nluchett
Posts: 12
Joined: Mon Oct 29, 2018 7:40 pm

Re: Warm Bubble Initialization Several Hours into a Simulation

Post by nluchett » Thu Feb 07, 2019 2:31 am

wflams wrote:
Wed Nov 28, 2018 8:50 pm
Hi All,

I'm trying to initialize a warm bubble in the idealized supercell simulation several hours into a simulation (rather than at time = 0). Does anyone have experience doing something similar? Thanks!
I'm trying to do the same thing in the em_fire ideal case... I want to have a spin up period, and delay the bubble for a few hours... I can't seem to figure out how to do it either... a bit over my head fortran wise... Did you ever figure this out? Thanks!

kwerner
Posts: 2287
Joined: Wed Feb 14, 2018 9:21 pm

Re: Warm Bubble Initialization Several Hours into a Simulation

Post by kwerner » Tue Feb 12, 2019 7:34 pm

Hi All,
In order to initialize a warm bubble later in an idealized simulation, there are a couple of files you'll need to modify:
dyn_em/solve_em.F
dyn_em/module_initialize_*.F (the initialization file appropriate to your case)

I have played around with this a bit for the supercell case, and will attach the modified files (these are modified from V4.0 code).Basically, you will need to go into the module_initialize_ideal.F file and search for the word 'bubble.' The first place you find it is inside the supercell case (starting around line 1075). If you put an #if 0......#endif statement around the entire content inside that case, it will ignore the initialization of the bubble at the beginning of the simulation (see the attached file).

You then need to take all of that content from the module_initialize_ideal file (within the above-mentioned supercell case section) and put it inside the solve_em.F file after the call to 'get_ijk_from_grid' (around line 231), and before the call to 'get_ijk_from_subgrid' section (around line 238). You will also need to make the following modifications (see the attached file - search for 'wrfhelp' to see where any modified code is, or you can diff the modified file, versus a pristine copy:
1) add an if statement around the whole new section to specify the time_step you want the bubble released
2) all the variables that are *_1 (e.g., ph_1), should be changed to *_2 (e.g., ph_2). This makes a couple of lines irrelevant, so those can be removed
3) all variables in this new section that are not preceded by "grid%" are local variables that were specifically declared in module_initialize_ideal, so they will need to be declared further up in solve_em (again, just search for 'wrfhelp').
4) all jts,jte,its,ite need to be changed to jps,jpe,ips,ipe
5) around line 303 in the original file, you should find the line "grid%itimestep = grid%itimestep + 1." Change this to whatever time step you'd like the bubble released (e.g., grid%itimestep = 100), and set the same for the if-test in step 1) above.

All this being said, we have not tested this thoroughly and are not certain how reasonable the results will be. Please proceed with caution. Because some of these cases have open boundaries, it could cause some unexpected results. You may need to make further modifications to cater this to your particular application.
Attachments
solve_em.F
(247.36 KiB) Downloaded 40 times
module_initialize_ideal.F
(68.28 KiB) Downloaded 35 times
NCAR/MMM

Jayanti pal
Posts: 64
Joined: Mon Nov 04, 2019 8:29 am

Re: Warm Bubble Initialization Several Hours into a Simulation

Post by Jayanti pal » Wed Feb 03, 2021 8:27 pm

Sir, I would like to know is it necessary to modify code when super cell ideal case is being simulated?
because I have done modification only in namelist and it gives constant field of wind and other parameters. here I have attached the namelist.
Attachments
namelist.input
(4.73 KiB) Downloaded 9 times

Jayanti pal
Posts: 64
Joined: Mon Nov 04, 2019 8:29 am

Re: Warm Bubble Initialization Several Hours into a Simulation

Post by Jayanti pal » Thu Feb 04, 2021 7:54 am

I have also modify and simulated the idealize case it still shows constant field.
Kindly help

Jayanti pal
Posts: 64
Joined: Mon Nov 04, 2019 8:29 am

Re: Warm Bubble Initialization Several Hours into a Simulation

Post by Jayanti pal » Sat Feb 06, 2021 7:11 am

please help.
Idealized simulation of supercell shows constant field in wrfout file
what to do
here I have attached the namelist.input
Attachments
namelist.input
(4.73 KiB) Downloaded 9 times

kwerner
Posts: 2287
Joined: Wed Feb 14, 2018 9:21 pm

Re: Warm Bubble Initialization Several Hours into a Simulation

Post by kwerner » Mon Feb 08, 2021 8:47 pm

@Jayanti pal,

We are already responding to questions regarding your idealizing supercell case here.
NCAR/MMM

Post Reply

Return to “Idealized Cases”