Skip to content

support ConstrainedEquation for PINNs #176

Closed
@KirillZubov

Description

@KirillZubov

Some examples of how this can be:

using ModelingToolkit

@parameters x y
@variables u(..)
@derivatives Dy'~y
@derivatives Dxx''~x

some_f(x,y) = x^2+y^2
eq = Dy(u(x,y)) - Dxx(u(x,y)) ~ some_f(x,y)

x_domain = IntervalDomain(0.0,3.0)
left_x_domain = IntervalDomain(0.0,1.0)
right_x_domain = IntervalDomain(2.0,3.0)
y_domain = IntervalDomain(0.0,1.0)

con_eq = ConstrainedEquation([x  left_x_domain  right_x_domain, y  y_domain],eq) #separate domain
con2_eq = ConstrainedEquation([x ~ 0,y < 1/2], u(x,y) ~ x + y^2)
con3_eq = ConstrainedEquation(x^2+y^2<0,  eq)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions