annotate +rv/+diffops/constructDiffOpsBdf.m @ 1178:e3d8f24b2c1c feature/rv

Add wrapper function calling constructDiffOps* for a specified RV method
author Vidar Stiernström <vidar.stiernstrom@it.uu.se>
date Fri, 28 Jun 2019 15:13:44 +0200
parents 66c0fbbc406f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1167
66c0fbbc406f Make constructDiffOps return a struct with the operators
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents: 1163
diff changeset
1 function diffOpsStruct = constructDiffOpsBdf(scheme, g, schemeOrder, residualOrder, schemeParams, opSet, BCs)
1163
65a577db5ca0 Move all functions in constructDiffOps to subpackage and refactor
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
diff changeset
2 %% DiffOps for solution vector
1167
66c0fbbc406f Make constructDiffOps return a struct with the operators
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents: 1163
diff changeset
3 [D_scheme, penalties_scheme, ~] = rv.diffops.constructSchemeDiffOp(scheme, g, schemeOrder, schemeParams, opSet, BCs);
1163
65a577db5ca0 Move all functions in constructDiffOps to subpackage and refactor
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
diff changeset
4 %% DiffOps for residual viscosity
1167
66c0fbbc406f Make constructDiffOps return a struct with the operators
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents: 1163
diff changeset
5 [D_flux, ~] = rv.diffops.constructFluxDiffOp(scheme, g, residualOrder, schemeParams, opSet, BCs);
1163
65a577db5ca0 Move all functions in constructDiffOps to subpackage and refactor
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
diff changeset
6 D_flux = @(v) -D_flux(v);
1167
66c0fbbc406f Make constructDiffOps return a struct with the operators
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents: 1163
diff changeset
7 diffOpsStruct = struct('D_scheme', D_scheme,...
66c0fbbc406f Make constructDiffOps return a struct with the operators
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents: 1163
diff changeset
8 'D_flux', D_flux,...
66c0fbbc406f Make constructDiffOps return a struct with the operators
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents: 1163
diff changeset
9 'penalties_scheme', penalties_scheme);
1163
65a577db5ca0 Move all functions in constructDiffOps to subpackage and refactor
Vidar Stiernström <vidar.stiernstrom@it.uu.se>
parents:
diff changeset
10 end