Boundary function for setting up dirichlet boundaries for a PDE with independent variables t and x.
| Parameters: |
-
t_bdry
(list)
–
list of two elements, the interval of t to be solved on.
-
x_bdry
(list)
–
list of two elements, the interval of x to be solved on.
-
N_bc
(int, default:
100
)
–
Number of randomly sampled collocation points along each boundary to use in training
-
all_boundaries_cond
(lambda, default:
None
)
–
function specifying condition on both xleft and xright boundary.
If declared leave xleft_boundary_cond and xright_boundary_cond undeclared. lambda must be of 1 variable.
-
xleft_boundary_cond
(lambda, default:
None
)
–
function specifying condition on xleft boundary.
If declared then declare xright_boundary_cond and leave all_boundaries_cond undeclared. lambda must be of 1 variable.
-
xright_boundary_cond
(lambda, default:
None
)
–
function specifying condition on xright boundary.
If declared then declare xright_boundary_cond and leave all_boundaries_cond undeclared. lambda must be of 1 variable.
|
All returns information returned in single list.
| Returns: |
-
flag( string
) –
string to identify what boundary condition was used internally.
-
bcs( np_column_stack
) –
stack of three lists; boundary points along t, along x, and functional values u along each boundary.
-
xleft_boundary_cond( lambda
) –
input lambda or all_boundaries_cond, returned for when hard constrainting
-
xright_boundary_cond( lambda
) –
input lambda or all_boundaries_cond, returned for when hard constrainting
-
t_bdry( list
) –
list of two elements, the interval of t to be solved on.
-
x_bdry( list
) –
list of two elements, the interval of x to be solved on.
|