[FLASH-USERS] boundary conditions changing with time

Marissa Adams madams at pas.rochester.edu
Mon Nov 20 17:02:09 EST 2017


Hey Julia,

I would suggest in* /source/Simulation/SimulationMain/*

grep -ri "Grid_bcApplyToRegionSpecialized.F90" .


Copy this file into your problem module. Perhaps also read a bit about how
boundary conditions work in the user manual (for instance there is some
nuance with "face==LOW" versus "face==HIGH" and what that implies for your
*flash.par* file). In your *flash.par* file set your particular boundary
condition you're changing with "user," e.g. "xr_boundary_type = "outflow""
to "xr_boundary_type="user"". Depending on where you'd like your jet to
enter, (in the above .F90 file) you can then edit the particular "
case(USER_DEFINED)" to your liking (you can search for this in the file,
but it is ~300 lines; not too long). I would then suggest adding a
subroutine to the file, or a function to define your jet in the file at the
bottom, or some simple calculations before "applied =.true." (say, some
file I/O if you have a profile made for your energy deposition) but after
the variable declarations.

Since you want this to change with time, and you're doing a comparison with
the simulation time, you'll also want to look for the file
*Simulation_adjustEvolution.F90
*and copy the pertinent definitions for simulation time there, "stime".
That may also be another file you'd want to consider using for this
problem, but I think bcApplyToRegionSpecialized is the way to go.

Best,
Marissa


On Mon, Nov 20, 2017 at 4:46 PM, Julia Grott <julia.grotova at gmail.com>
wrote:

> Hello everybody,
> I'm a starting flash user, and I wonder if I can make boundary conditions
> that will change with time.
> To be more precise I'm trying to model a jet ( an outflow of matter) which
> will turn on and off at certain moments of time. (Something like: if t< 5
> sec, then turn on jet, else turn off. )
> How can I do something like a timer?
> Maybe I don't need to vary boundary conditions, but just to add proper
> conditions in the Simulation_initBlock, which can be  turned off after
> certain time.
>
> I will be happy to hear any ideas,
> Thanks in advance!
>
> Julia
>
>
>
>


-- 
Marissa Adams                                 E-mail:
madams at pas.rochester.edu
PhD Student                                   Ph: (585) 402-5779
University of Rochester                       Website:
http://www.pas.rochester.edu/~madams/
Department of Physics & Astronomy
371 Bausch & Lomb Hall
P.O. Box 270171
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20171120/0b130270/attachment.htm>


More information about the flash-users mailing list