FunctionSpace { //Electric field { Name Hcurl_e; Type Form1; BasisFunction { { Name se; NameOfCoef ee; Function BF_Edge; Support Region[{non_conducting_domain, conducting_domain, open_air_domain, Sur_RB, Sur_UNIFPORT, Sur_COAXPORT, Sur_INTERFACE, Sur_CONDUCTOR, Sur_PEC}] ; Entity EdgesOf[All]; } { Name se2; NameOfCoef ee2; Function BF_Edge_2E; Support Region[{non_conducting_domain, conducting_domain, open_air_domain, Sur_RB, Sur_UNIFPORT, Sur_COAXPORT, Sur_INTERFACE, Sur_CONDUCTOR, Sur_PEC}] ; Entity EdgesOf[All]; } } Constraint { { NameOfCoef ee; EntityType EdgesOf ; NameOfConstraint Efield; } { NameOfCoef ee2; EntityType EdgesOf ; NameOfConstraint Efield; } } } //Magnetic field on surfaces for postprocessing { Name Hcurl_hs; Type Form1; BasisFunction { { Name shs; NameOfCoef hes; Function BF_Edge; Support ElementsOf[{non_conducting_domain, conducting_domain, open_air_domain, Sur_RB, Sur_UNIFPORT, Sur_COAXPORT, Sur_INTERFACE, Sur_PEC, Sur_CONDUCTOR}, OnOneSideOf {Sur_UNIFPORT, Sur_COAXPORT, Sur_INTERFACE, Sur_PEC, Sur_CONDUCTOR}] ; Entity EdgesOf[{Sur_CONDUCTOR, Sur_PEC, Sur_UNIFPORT, Sur_COAXPORT, Sur_INTERFACE}]; } { Name shs2; NameOfCoef hes2; Function BF_Edge_2E; Support ElementsOf[{non_conducting_domain, conducting_domain, open_air_domain, Sur_RB, Sur_UNIFPORT, Sur_COAXPORT, Sur_INTERFACE, Sur_PEC, Sur_CONDUCTOR}, OnOneSideOf {Sur_UNIFPORT, Sur_COAXPORT, Sur_INTERFACE, Sur_PEC, Sur_CONDUCTOR}] ; Entity EdgesOf[{Sur_CONDUCTOR, Sur_PEC, Sur_UNIFPORT, Sur_COAXPORT, Sur_INTERFACE}]; } } } //port global quantities { Name Hgrad_port; Type Form0; BasisFunction { { Name sn; NameOfCoef pe; Function BF_Region; Support Region[{Sur_UNIFPORT, Sur_COAXPORT}]; Entity Region[{Sur_UNIFPORT, Sur_COAXPORT}]; } { Name sn2; NameOfCoef pe2; Function BF_Region;Support Region[{Sur_UNIFPORT, Sur_COAXPORT}]; Entity Region[{Sur_UNIFPORT, Sur_COAXPORT}]; } } // for getting global quantity on Region Port GlobalQuantity { { Name U_port; Type AliasOf; NameOfCoef pe; } { Name G_port; Type AliasOf; NameOfCoef pe2; } } } }