Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spatially periodic policies #5

Open
rmojgani opened this issue Feb 13, 2023 · 4 comments
Open

Spatially periodic policies #5

rmojgani opened this issue Feb 13, 2023 · 4 comments

Comments

@rmojgani
Copy link
Owner

Hi @wadaniel ,

I am thinking of a property of the policy that you might have thought about before, so decided to share my thoughts with you.

I have a one action per agent policy implemented, but then realized probably my policy should also be periodic, as my spatial domain is doubly periodic.

I think this should appear in my upsampling function:

this is what I mean:
below is an image of contour plot of forcing, but as you can see the values on left and right of the domain are not continuous, but I was expecting them to be (since my domain is periodic)

image

Let me know what you think

@wadaniel
Copy link
Collaborator

Hi,
yes thats a good observation and I did this aswell. you must take care of it in the upsampling procedure (with upsampling, you mean interpolation on the finer grid, right?)

@rmojgani
Copy link
Owner Author

Hi,
(with upsampling, you mean interpolation on the finer grid, right?)
yes.

I am thinking of passing through a periodic map, e.g., sin(x) and sin(y), any better ideas ?

@wadaniel
Copy link
Collaborator

Hm I thought this could be handled much easier and just linearly interpolate the most right and the most left stencils on the coarse grid to introduce periodicity in x?

@rmojgani
Copy link
Owner Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants