rbmatlab  1.16.09
 All Classes Namespaces Files Functions Variables Modules Pages
Functions
exact_function_plaplace.m File Reference

This is the first function from http://eqworld.ipmnet.ru/en/solutions/npde/npde1201.pdf. More...

Go to the source code of this file.

Functions

function res = exact_function_plaplace (glob, params)
 This is the first function from http://eqworld.ipmnet.ru/en/solutions/npde/npde1201.pdf. More...
 

Detailed Description

This is the first function from http://eqworld.ipmnet.ru/en/solutions/npde/npde1201.pdf.

Definition in file exact_function_plaplace.m.

Function Documentation

function res = exact_function_plaplace (   glob,
  params 
)

This is the first function from http://eqworld.ipmnet.ru/en/solutions/npde/npde1201.pdf.

This implements the function

\[ u(x,y,t) = \left( -\frac{\lambda p}{m} x - \frac{\lambda^2}{m} t + A \right)^{\frac{1}{p}} \]

solving the PDE

\[ \partial_t u = - \partial_x \left( u^p \partial_x u \right) \]

where [x,y] is given by glob, and the function parameters are read from params. We use this function for an EOC test of our newton_model().

Parameters
globglobal coordinate vectors
paramsparameter specifying the function
Return values
resres
Required fields of params:
  • t —  time instance at which the spatial solution is computed
Optional fields of params:
  • plaplace_A —  scalar specifying constant \(A\) (Default = 1.0)
  • plaplace_lambda —  scalar specifying constant \(\lambda\) (Default = 0.8)
  • diff_p —  scalar specifying the exponent constant p (Default = 0.5)
  • diff_m —  scalar specifying the constant m (Default = 1.0)

Definition at line 17 of file exact_function_plaplace.m.

Here is the caller graph for this function: