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

Special Type Boundary Condition #160

Closed
udemirezen opened this issue Nov 1, 2021 · 4 comments
Closed

Special Type Boundary Condition #160

udemirezen opened this issue Nov 1, 2021 · 4 comments

Comments

@udemirezen
Copy link

udemirezen commented Nov 1, 2021

Hi,
Can we create a special type of boundary condition given below:
Dg(s(t,1)) ~ ks*(sa-s(t,1)),
Dg is the differentiation on r (spherical coordinates) Dg(f(t,r))/Dr.
If yes, could you show it?
Thank you

@shuheng-liu
Copy link
Member

Hi @udemirezen , I'm not sure I understand the notation used here. Can you clarify a little bit more?

@udemirezen
Copy link
Author

udemirezen commented Nov 1, 2021

Hi @udemirezen , I'm not sure I understand the notation used here. Can you clarify a little bit more?

Sorry for unclear explanation. I mean:

4D18ED93-6B72-4278-9DAA-631ABA2E4082

these kind of boundary conditions. Here rl is lower value, ru is upper value rl =0 and ru=1 in this case.

@udemirezen
Copy link
Author

udemirezen commented Nov 1, 2021

Hi @udemirezen , I'm not sure I understand the notation used here. Can you clarify a little bit more?

Sorry for unclear explanation. I mean:

4D18ED93-6B72-4278-9DAA-631ABA2E4082

these kind of boundary conditions. Here rl is lower value, ru is upper value rl =0 and ru=1 in this case.

especially these Boundary conditions that i wanted to ask:
DEC1C742-5D57-4B98-A9FA-90048CEAE6CF

Is This type of BVC possible to implement?
Thank you

@shuheng-liu
Copy link
Member

shuheng-liu commented Nov 2, 2021

Hi, this looks like a Robin condition if I understand correctly. Currently, we don't have a stable implementation. However, I would recommend adding the boundary constraint to your loss function. You can override the additional_loss function of your solver. Check this documentation and this line of code for more. Note your new additional_loss(self, residual, funcs, coords) function must return a scalar (usually mean squared residual) that will be minimized.

Feel free to reach out if are not sure how to do that.

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