29 lines
645 B
Matlab
29 lines
645 B
Matlab
function [phy, cfg] = case_config()
|
|
%CASE_CONFIG 3D 一阶矢量本征问题;对应 C++ eigen3d.json (FemType=5)。
|
|
|
|
phy.eps = [1 1.5];
|
|
phy.mur = [1 1];
|
|
phy.lda0 = 0.8;
|
|
phy.c_const = 2.9979e8;
|
|
phy.ff0 = phy.c_const / phy.lda0;
|
|
|
|
cfg.FemType = 5;
|
|
cfg.EletricType = 2;
|
|
cfg.NbrBoundary = 14;
|
|
cfg.BoundaryFlag = zeros(1, 14);
|
|
cfg.MeshFile = 'SBCmesh.dat';
|
|
cfg.meshDatFile = 'SBCmesh.dat';
|
|
cfg.OutFile = './OutFile';
|
|
cfg.jsonFile = 'eigen3d.json';
|
|
cfg.meshMatFile = 'SBCmesh.mat';
|
|
cfg.NbrMode = 6;
|
|
cfg.searchType = 0;
|
|
cfg.searchValue = phy.ff0;
|
|
cfg.solverType = 0;
|
|
cfg.maxIterNum = 40;
|
|
cfg.tol = 1e-6;
|
|
cfg.tolType = 0;
|
|
cfg.lambda0 = phy.lda0;
|
|
|
|
end
|