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

27 lines
586 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 + 单周期 Blochmain_RBC.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;
cfg.ElementOrder = 2;
cfg.NbrBoundary = 14;
cfg.BoundaryFlag = [0, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 2];
cfg.MeshFile = 'PBCmesh.dat';
cfg.OutFile = './OutFile';
cfg.jsonFile = '';
cfg.meshMatFile = 'c6.mat';
cfg.pbcAngle = pi / 3;
cfg.pbcPhi = exp(1i * 2 * pi / 6);
end