pde_ModelFuncs_2var
Functions for creating PINN's in PDE solvers of tx and xy.
While available to user, not meant to be used. Instead interface through net_layers, net_units, and constraint parameters of solving functions detailed in "Main User Functions".
We have described commonly used layer classes used throughout many models, models for specific solvePDE_tx equations, and models for specifc solvePDE_xy equations.
Commonly used layer classes
Periodic
Bases: Layer
Class which describes a Periodic layer for PINN. Used in periodic models
Normalize
Bases: Layer
Class which describes a normalize layer for PINN. Returns input data normalized to interval [-1, 1].
Models for solving solvePDE_tx equations
select_model_tx(t_bdry, x_bdry, t_order, inital_t, net_layers, net_units, constraint, setup_boundaries)
Main function called by solve class to select which model is needed in training, and calls that build_model function.
| Parameters: |
|
|---|
| Returns: |
|
|---|
build_model_standard(x_bdry, y_bdry, n_layers, n_units)
Model used by both tx and xy equations, standard PINN with 2 variables, no periodic layers and no hard constrainting.
Used in solving:
- solvePDE_tx with dirichlet boundaries and soft constraints
- solvePDE_tx with neumann boundaries and soft constraints
- solvePDE_xy with dirichlet boundaries and soft constraints
- solvePDE_xy with neumann boundaries and soft constraints
| Parameters: |
|
|---|
| Returns: |
|
|---|
build_model_periodic_tx(t, x_bdry, n_layers, n_units)
Used in solving:
- solvePDE_tx with periodic boundaries and soft constraints
| Parameters: |
|
|---|
| Returns: |
|
|---|
build_model_periodic_hardconstraint1_tx(t, x, u0, n_layers, n_units)
Used in solving:
- solvePDE_tx with periodic boundaries, hard constraints of a single order equation (i.e, a single initial condtion)
| Parameters: |
|
|---|
| Returns: |
|
|---|
build_model_periodic_hardconstraint2_tx(t, x, u0, ut0, n_layers, n_units)
Used in solving:
- solvePDE_tx with periodic boundaries, hard constraints of a second order equation (i.e, two initial condtions)
| Parameters: |
|
|---|
| Returns: |
|
|---|
build_model_periodic_hardconstraint3_tx(t, x, u0, ut0, utt0, n_layers, n_units)
Used in solving:
- solvePDE_tx with periodic boundaries, hard constraints of a third order equation (i.e, three initial condtions)
| Parameters: |
|
|---|
| Returns: |
|
|---|
Models for solving solvePDE_xy equations
select_model_xy(x_bdry, y_bdry, net_layers, net_units, constraint, setup_boundaries)
Main function called by solve class to select which model is needed in training, and calls that build_model function.
| Parameters: |
|
|---|
| Returns: |
|
|---|
build_model_standard(x_bdry, y_bdry, n_layers, n_units)
Model used by both tx and xy equations, standard PINN with 2 variables, no periodic layers and no hard constrainting.
Used in solving:
- solvePDE_tx with dirichlet boundaries and soft constraints
- solvePDE_tx with neumann boundaries and soft constraints
- solvePDE_xy with dirichlet boundaries and soft constraints
- solvePDE_xy with neumann boundaries and soft constraints
| Parameters: |
|
|---|
| Returns: |
|
|---|
build_model_periodic_xy(n_layers, n_units, x, y)
Used in solving:
- solvePDE_xy with periodic boundaries and soft constraints
- solvePDE_xy with periodic boundaries and hard constraints
| Parameters: |
|
|---|
| Returns: |
|
|---|
If using periodic boundaries in a time independent equation, all boundaries are periodic and therefore there is nothing to be soft/hard constrainted, as periodic implemented on a network layer level.
build_model_hardconstraint_xy(x_bdry, y_bdry, n_layers, n_units, xleft_bound, xright_bound, ylower_bound, yupper_bound)
Used in solving:
- solvePDE_xy with dirichlet boundaries and hard constraints
| Parameters: |
|
|---|
| Returns: |
|
|---|