Skip to content

ppasquini/controlgym_datagen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

To modify the initial coditions go to:

controlgym\envs\name_of_the_enviroment.py

And modify the function:

    def select_init_state(self, init_amplitude=None, init_spread=None):

For burgers, one shock scenario:

init_state = init_amplitude * np.cosh(
        1 / init_spread * (self.domain_coordinates - 0.5 * self.domain_length)
    ) ** (-1) 

or, for two shocks:

init_state = init_amplitude * np.cosh(
            1 / init_spread * (env.domain_coordinates - 0.3)
        ) ** (-1) + np.cosh(
            1 / init_spread * (env.domain_coordinates - 0.7)
        ) ** (-1)

To install the library see https://github.com/xiangyuan-zhang/controlgym

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published