XIAN-FEM-2026June/三维matlab代码/matlab 3D一阶基+本征模式-双周期边界/case_config.m

29 lines
665 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 一阶本征 + 双周期 Blochmain_doublePBC.mFSS 单元)。
phy.eps = [1 1 4.3 1 1];
phy.mur = [1 1 1 1 1];
phy.ff0 = 6e9;
phy.c_const = 299792458;
phy.PEC = [3 16 22];
phy.src = [1 4 7 10 13];
phy.dst = [23 24 25 26 27];
phy.src2 = [2 5 8 11 14];
phy.dst2 = [17 18 19 20 21];
cfg.FemType = 5;
cfg.EletricType = 2;
cfg.NbrBoundary = 14;
cfg.BoundaryFlag = zeros(1, 14);
cfg.MeshFile = 'case1_mesh.dat';
cfg.OutFile = './OutFile';
cfg.jsonFile = '';
cfg.meshMatFile = 'case1.mat';
cfg.pbcWaveVec = [0.034; 0; 0];
cfg.pbcPhi = 1;
cfg.pbcWaveVec2 = [0; 0.034; 0];
cfg.pbcPhi2 = 1;
cfg.NbrMode = 40;
end