1313 DistanceFunction
1414 FlowVelocityMagnitude
1515 JacobianFlowVelocityMagnitudeVectorProduct
16- RhsAD
1716 end
1817
1918 methods (Static )
@@ -110,10 +109,6 @@ function onSettingsChanged(obj)
110109 Re = obj .Parameters .Re ;
111110 Ro = obj .Parameters .Ro ;
112111
113- lambda = obj .Parameters .les .lambda ;
114- passes = obj .Parameters .les .passes ;
115- % dfiltertype = obj.Parameters.les.filtertype;
116-
117112 n = [nx , ny ];
118113
119114 hx = 1 /(nx + 1 );
@@ -122,12 +117,9 @@ function onSettingsChanged(obj)
122117 xdomain = [0 , 1 ];
123118 ydomain = [0 , 2 ];
124119
125- domain = [0 , 1 ; 0 , 2 ];
126- diffc = [1 , 1 ];
127120 bc = ' DD' ;
128121
129122 % create Laplacian
130- L = otp .utils .pde .laplacian(n , domain , diffc , bc );
131123 Ddx = otp .utils .pde .Dd(n , xdomain , 1 , 2 , bc(1 ));
132124 Ddy = otp .utils .pde .Dd(n , ydomain , 2 , 2 , bc(2 ));
133125
@@ -142,11 +134,6 @@ function onSettingsChanged(obj)
142134 Lx = otp .utils .pde .laplacian(nx , xdomain , 1 , bc(1 ));
143135 Ly = otp .utils .pde .laplacian(ny , ydomain , 1 , bc(2 ));
144136
145- % do a Cholesky decomposition on the negative laplacian
146- [RdnL , ~ , PdnL ] = chol(-L );
147- RdnLT = RdnL .' ;
148- PdnLT = PdnL .' ;
149-
150137 % Do decompositions for the eigenvalue sylvester method. See
151138 %
152139 % Kirsten, Gerhardus Petrus. Comparison of methods for solving Sylvester systems. Stellenbosch University, 2018.
@@ -177,23 +164,6 @@ function onSettingsChanged(obj)
177164 otp .qg .javp(psi , v , Lx , Ly , P1 , P2 , L12 , Dx , DxT , Dy , DyT , F , Re , Ro ));
178165
179166
180- % AD LES
181- fmat = speye(prod(n )) - ((lambda * hx )^2 )*L ;
182-
183- [Rfmat , ~ , Pfmat ] = chol(fmat );
184- RfmatT = Rfmat .' ;
185- PfmatT = Pfmat .' ;
186-
187- if ~isfield(obj .Parameters , ' filter' ) || isempty(obj .Parameters .filter )
188- filter = @(u ) Pfmat *(Rfmat \(RfmatT \(PfmatT * u )));
189- else
190- filter = obj .Parameters .filter ;
191- end
192-
193- Fbar = filter(reshape(F , nx * ny , 1 ));
194- obj.RhsAD = otp .Rhs(@(t , psi ) ...
195- otp .qg .fAD(psi , L , RdnL , RdnLT , PdnL , PdnLT , Ddx , Ddy , Fbar , Re , Ro , filter , passes ));
196-
197167 %% Distance function, and flow velocity
198168 obj.DistanceFunction = @(t , y , i , j ) otp .qg .distfn(t , y , i , j , nx , ny );
199169
0 commit comments