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

Translation of BCs to primatives #1

Open
xtalax opened this issue Mar 24, 2023 · 0 comments
Open

Translation of BCs to primatives #1

xtalax opened this issue Mar 24, 2023 · 0 comments

Comments

@xtalax
Copy link
Member

xtalax commented Mar 24, 2023

At the moment whole equations are recognized as belonging to a particular boundary, or being a type of interface between regions.
We want a method for seeing whether they are dirichlet, robin, neumann, periodic or interface as many subpackages will rely on these primatives.

This should be robust to different forms, i.e. u(0, t) - 1 ~ 0 and 0 ~ 1-u(0, t) should be recognized as dirichlet BCs, not robin, and equivalent to u(0, t) ~ 1

Should have the answer stored in a few types of struct such as:

struct DirichletBC <: AbstractAtomicBC
    """
    The dependent variable of the BC (e.g. u(0, t))
    """
    u
    """
    The independent variable of the BC (e.g. x), where this is the one held constant
    """
    x
    """
    Where this bc is defined, unused for now but will be important for exotically shaped domains
    """
    support
    """
    The RHS
    """
    expr
end
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

1 participant