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

28 lines
688 B
Matlab
Raw 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 一阶 + 单周期 Bloch 边界main_singlePBC.m
phy.eps = [1 1.2];
phy.mur = [1 1];
phy.f0 = 6e9;
phy.lda0 = 0.049965;
phy.out = [3 9];
phy.inc = [8];
phy.Einc = [0.5; -0.5*1i; 0];
phy.src = [1 4];
phy.dst = [2 5];
cfg.FemType = 4;
cfg.EletricType = 2;
% BoundaryFlag(i) = type of mesh face domain i (DomainOfTri 1..9)
% 0=PMC, 2=SBC, 4=PBC; order matches phy.src/dst/out/inc
cfg.NbrBoundary = 9;
cfg.BoundaryFlag = [4, 4, 2, 4, 4, 0, 0, 2, 2];
cfg.MeshFile = 'PBCmesh.dat';
cfg.OutFile = './OutFile';
cfg.jsonFile = 'PBCmesh.json';
cfg.meshMatFile = 'c6.mat';
cfg.pbcAngle = pi / 3;
cfg.pbcPhi = exp(1i * 2 * pi / 6);
end