0001 function [c,a,f,b]=rbconvf(p,u,lam)
0002
0003 [ux,uz]=pdegrad(p.points,p.tria,u);
0004 u=pdeintrp(p.points,p.tria,u);
0005 om = u(2,:);
0006
0007 psix=ux(1,:); psiz=uz(1,:);
0008 omx =ux(2,:); omz =uz(2,:);
0009 Tx =ux(3,:); Tz =uz(3,:);
0010 R=lam; P=1; c=[1;1;P;P;1;1];
0011
0012
0013
0014
0015
0016
0017 a = zeros(p.neq^2,1); a(4)=1;
0018 b = zeros(p.neq^2*2,1);
0019 b(2*p.neq*2+3) = R*P;
0020 b(2*2+1) = 1;
0021 f1 = 0*om;f2 = -(psix.*omz-psiz.*omx);f3 = -(psix.*Tz -psiz.*Tx);
0022 f=[f1;f2;f3];