XIAN-FEM-2026June/三维matlab代码/matlab 3D二阶基+散射边界条件/case_config.m

22 lines
521 B
Matlab
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

function [phy, cfg] = case_config()
%CASE_CONFIG 3D 二阶 Nedelec + SBC 散射(λ=2 m与一阶粗网格算例同几何
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.ElementOrder = 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_order2.json';
cfg.meshMatFile = 'SBCmesh.mat';
end