Skip to content

Commit

Permalink
Fixing k=3 data
Browse files Browse the repository at this point in the history
  • Loading branch information
NEStock committed Mar 1, 2021
1 parent c93c845 commit 1cfbb37
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions k_3/data/get_data_1.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@
%GET_DATA1 Get z vector and p equation exact solution
% data1
% z = [ -sin(pi*z)(2r - 1)
% -sin(pi*z)(r - 1)
% -n*sin(pi*z)(r - 1)
% -pi*cos(pi*z)(r^2 - r) ]
% p = sin(pi*z)(r^2 - r)
% f = -2sin(pi*z) - (1/r)sin(pi*z)(2r - 1 - n^2(r - 1)) -
% pi^2cos(pi*z)(r^2 - r)
% Author: Nicole Stock
% Date: Fall 2020

z_vec_r = @(r,z) -sin(pi.*z).*(2.*r - 1);
z_vec_th = @(r,z) -sin(pi.*z).*(r - 1);
z_vec_th = @(r,z) -n.*sin(pi.*z).*(r - 1);
z_vec_z = @(r,z) -pi*cos(pi.*z).*(r.^2 - r);
p_exact = @(r,z) sin(pi.*z).*(r.^2 - r);
f = @(r,z) -2.*sin(pi.*z) ...
Expand Down

0 comments on commit 1cfbb37

Please sign in to comment.