23 lines
576 B
Matlab
23 lines
576 B
Matlab
function [phy, cfg] = case_config()
|
|
%CASE_CONFIG 本算例唯一配置:改这里即可同步 main.m 与 JSON 导出。
|
|
%
|
|
% 2 m + SBC 粗网格,对应 C++ scat3D_SBC / sbc3d_sbc.json
|
|
|
|
phy.eps = [1 1.5];
|
|
phy.mur = [1 1];
|
|
phy.lda0 = 2;
|
|
phy.out = [1 2 3 5 14];
|
|
phy.inc = [4];
|
|
phy.Einc = [1; 0; 0];
|
|
|
|
cfg.FemType = 4;
|
|
cfg.EletricType = 2;
|
|
cfg.NbrBoundary = 14;
|
|
cfg.BoundaryFlag = [0, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 2];
|
|
cfg.MeshFile = 'SBCmesh.dat';
|
|
cfg.OutFile = './OutFile';
|
|
cfg.jsonFile = 'sbc3d_sbc.json';
|
|
cfg.meshDatFile = 'SBCmesh.dat'; % main.m 读网格用
|
|
|
|
end
|