def set_Excitation(qwm_doc): QW_Modeller.addQWObject("QW_Modeller::TemplatePort", "guideinp") qwm_doc.guideinp.Length = 10.0 qwm_doc.guideinp.Width = 5.0 qwm_doc.guideinp.Placement = FreeCAD.Placement( FreeCAD.Vector(0.0, 5.0, 2.5), FreeCAD.Rotation(0.5, 0.5, 0.5, 0.5)) qwm_doc.guideinp.Orientation = "X" qwm_doc.guideinp.Position = 0.0 qwm_doc.guideinp.Activity = "PLUS" qwm_doc.guideinp.Type = "Source" qwm_doc.guideinp.SymmetryH = False qwm_doc.guideinp.SymmetryV = False qwm_doc.guideinp.PointCoordX = 0.0 qwm_doc.guideinp.PointCoordY = 5.0 qwm_doc.guideinp.PointCoordZ = 2.5 qwm_doc.guideinp.effectivePermitivityMode = "AUTO" qwm_doc.guideinp.Excitation = QW_Modeller.TemplateExcitation( QW_Modeller.DriveFunction(QW_Modeller.Waveform('delta'), 1, 0, 1, 0), 'TEM', 'Ex', 1, QW_Modeller.TemplateGenerationConf('Automatic', (10, 0.2), (9, 11, 0.01), 1, 50, 1, 0)) qwm_doc.guideinp.MultiPointExcitation = QW_Modeller.MultiPointPortExcitation( 0, "0.1") qwm_doc.guideinp.Postprocessing = QW_Modeller.PortPostprocessing(0, 0, 1) qwm_doc.guideinp.ReferenceOffset = abs(qwm_doc.guideinp.PointCoordX - 5.2) QW_Modeller.addQWObject("QW_Modeller::TemplatePort", "coaxout") qwm_doc.coaxout.Length = 5.0 qwm_doc.coaxout.Width = 5.0 qwm_doc.coaxout.Placement = FreeCAD.Placement( FreeCAD.Vector(19.6, 5.0, 14.0), FreeCAD.Rotation(0.0, 0.0, 0.0, 1.0)) qwm_doc.coaxout.Orientation = "Z" qwm_doc.coaxout.Position = 14.0 qwm_doc.coaxout.Activity = "MINUS" qwm_doc.coaxout.Type = "Load" qwm_doc.coaxout.SymmetryH = False qwm_doc.coaxout.SymmetryV = False qwm_doc.coaxout.PointCoordX = 19.6 qwm_doc.coaxout.PointCoordY = 5.0 qwm_doc.coaxout.PointCoordZ = 14.0 qwm_doc.coaxout.effectivePermitivityMode = "AUTO" qwm_doc.coaxout.Excitation = QW_Modeller.TemplateExcitation( QW_Modeller.DriveFunction(QW_Modeller.Waveform('delta'), 1, 0, 1, 0), 'TEM', 'Ex', 1, QW_Modeller.TemplateGenerationConf('Automatic', (10, 0.2), (9, 11, 0.01), 1, 50, 1, 0)) qwm_doc.coaxout.MultiPointExcitation = QW_Modeller.MultiPointPortExcitation( 0, "0.1") qwm_doc.coaxout.Postprocessing = QW_Modeller.PortPostprocessing(0, 0, 1) qwm_doc.coaxout.ReferenceOffset = abs(qwm_doc.coaxout.PointCoordZ - 9.0)
def set_Excitation(qwm_doc): QW_Modeller.addQWObject("QW_Modeller::TemplatePort", "inp") qwm_doc.inp.Length = 20.0 qwm_doc.inp.Width = 10.0 qwm_doc.inp.Placement = Base.Placement(Base.Vector(0.0, 0.0, 5.0), Base.Rotation(0.5, 0.5, 0.5, 0.5)) qwm_doc.inp.Orientation = "X" qwm_doc.inp.Position = 0.0 qwm_doc.inp.Activity = "PLUS" qwm_doc.inp.Type = "Source" qwm_doc.inp.SymmetryH = False qwm_doc.inp.SymmetryV = False qwm_doc.inp.PointCoordX = 0.0 qwm_doc.inp.PointCoordY = 0.0 qwm_doc.inp.PointCoordZ = 5.0 qwm_doc.inp.effectivePermitivityMode = "AUTO" qwm_doc.inp.Excitation = QW_Modeller.TemplateExcitation( QW_Modeller.DriveFunction(QW_Modeller.Waveform('delta'), 1, 0, 1, 0), 'TEM', 'Ex', 1, QW_Modeller.TemplateGenerationConf('Automatic', (10, 0.2), (9, 11, 0.01), 1, 50, 1, 0)) qwm_doc.inp.MultiPointExcitation = QW_Modeller.MultiPointPortExcitation( 0, "0.1") qwm_doc.inp.Postprocessing = QW_Modeller.PortPostprocessing(0, 0, 1) qwm_doc.inp.ReferenceOffset = abs(qwm_doc.inp.PointCoordX - 10.0) QW_Modeller.addQWObject("QW_Modeller::TemplatePort", "out") qwm_doc.out.Length = 20.0 qwm_doc.out.Width = 10.0 qwm_doc.out.Placement = Base.Placement(Base.Vector(60.0, 0.0, 5.0), Base.Rotation(0.5, 0.5, 0.5, 0.5)) qwm_doc.out.Orientation = "X" qwm_doc.out.Position = 60.0 qwm_doc.out.Activity = "MINUS" qwm_doc.out.Type = "Load" qwm_doc.out.SymmetryH = False qwm_doc.out.SymmetryV = False qwm_doc.out.PointCoordX = 60.0 qwm_doc.out.PointCoordY = 0.0 qwm_doc.out.PointCoordZ = 5.0 qwm_doc.out.effectivePermitivityMode = "AUTO" qwm_doc.out.Excitation = QW_Modeller.TemplateExcitation( QW_Modeller.DriveFunction(QW_Modeller.Waveform('delta'), 1, 0, 1, 0), 'TEM', 'Ex', 1, QW_Modeller.TemplateGenerationConf('Automatic', (10, 0.2), (9, 11, 0.01), 1, 50, 1, 0)) qwm_doc.out.MultiPointExcitation = QW_Modeller.MultiPointPortExcitation( 0, "0.1") qwm_doc.out.Postprocessing = QW_Modeller.PortPostprocessing(0, 0, 1) qwm_doc.out.ReferenceOffset = abs(qwm_doc.out.PointCoordX - 50.0)
def set_Excitation(qwm_doc): QW_Modeller.addQWObject("QW_Modeller::TemplatePort","cwghinp1") qwm_doc.cwghinp1.Length = 100.0 qwm_doc.cwghinp1.Width = 100.0 qwm_doc.cwghinp1.Placement = Base.Placement(Base.Vector(0.0, 0.0, 0.0), Base.Rotation(0.0, 0.0, 0.0, 1.0)) qwm_doc.cwghinp1.Orientation = "Z" qwm_doc.cwghinp1.Position = 0.0 qwm_doc.cwghinp1.Activity = "PLUS" qwm_doc.cwghinp1.Type = "Source" qwm_doc.cwghinp1.SymmetryH = False qwm_doc.cwghinp1.SymmetryV = False qwm_doc.cwghinp1.PointCoordX = 0.0 qwm_doc.cwghinp1.PointCoordY = 0.0 qwm_doc.cwghinp1.PointCoordZ = 0.0 qwm_doc.cwghinp1.effectivePermitivityMode = "AUTO" qwm_doc.cwghinp1.Excitation = QW_Modeller.TemplateExcitation(QW_Modeller.DriveFunction(QW_Modeller.Waveform('delta'),1,0,1,0),'TEM','Ex',1,QW_Modeller.TemplateGenerationConf('Automatic',(10,0.2),(9,11,0.01),1,50,1,0)) qwm_doc.cwghinp1.MultiPointExcitation = QW_Modeller.MultiPointPortExcitation(0,"0.1") qwm_doc.cwghinp1.Postprocessing = QW_Modeller.PortPostprocessing(0,0,1) qwm_doc.cwghinp1.ReferenceOffset = abs(qwm_doc.cwghinp1.PointCoordZ - 30.0) QW_Modeller.addQWObject("QW_Modeller::TemplatePort","cwghout1") qwm_doc.cwghout1.Length = 100.0 qwm_doc.cwghout1.Width = 100.0 qwm_doc.cwghout1.Placement = Base.Placement(Base.Vector(0.0, 0.0, 300.0), Base.Rotation(0.0, 0.0, 0.0, 1.0)) qwm_doc.cwghout1.Orientation = "Z" qwm_doc.cwghout1.Position = 300.0 qwm_doc.cwghout1.Activity = "MINUS" qwm_doc.cwghout1.Type = "Load" qwm_doc.cwghout1.SymmetryH = False qwm_doc.cwghout1.SymmetryV = False qwm_doc.cwghout1.PointCoordX = 0.0 qwm_doc.cwghout1.PointCoordY = 0.0 qwm_doc.cwghout1.PointCoordZ = 300.0 qwm_doc.cwghout1.effectivePermitivityMode = "AUTO" qwm_doc.cwghout1.Excitation = QW_Modeller.TemplateExcitation(QW_Modeller.DriveFunction(QW_Modeller.Waveform('delta'),1,0,1,0),'TEM','Ex',1,QW_Modeller.TemplateGenerationConf('Automatic',(10,0.2),(9,11,0.01),1,50,1,0)) qwm_doc.cwghout1.MultiPointExcitation = QW_Modeller.MultiPointPortExcitation(0,"0.1") qwm_doc.cwghout1.Postprocessing = QW_Modeller.PortPostprocessing(0,0,1) qwm_doc.cwghout1.ReferenceOffset = abs(qwm_doc.cwghout1.PointCoordZ - 270.0)
def set_Excitation(qwm_doc): QW_Modeller.addQWObject("QW_Modeller::SnappingPlane", "spx1") qwm_doc.spx1.Placement = FreeCAD.Placement( FreeCAD.Vector(-10.0, 0.05, 0.0), FreeCAD.Rotation(0.5, 0.5, 0.5, 0.5)) qwm_doc.spx1.Orientation = "X" qwm_doc.spx1.Position = -10.0 qwm_doc.spx1.Length = 0.1 qwm_doc.spx1.Width = 0.0 FreeCAD.Gui.ActiveDocument.spx1.ShowText = False FreeCAD.Gui.ActiveDocument.spx1.TextSize = 14 FreeCAD.Gui.ActiveDocument.spx1.TextPlace = 3 QW_Modeller.addQWObject("QW_Modeller::SnappingPlane", "spx2") qwm_doc.spx2.Placement = FreeCAD.Placement( FreeCAD.Vector(10.0, 0.05, 0.0), FreeCAD.Rotation(0.5, 0.5, 0.5, 0.5)) qwm_doc.spx2.Orientation = "X" qwm_doc.spx2.Position = 10.0 qwm_doc.spx2.Length = 0.1 qwm_doc.spx2.Width = 0.0 FreeCAD.Gui.ActiveDocument.spx2.ShowText = False FreeCAD.Gui.ActiveDocument.spx2.TextSize = 14 FreeCAD.Gui.ActiveDocument.spx2.TextPlace = 3 QW_Modeller.addQWObject("QW_Modeller::SnappingPlane", "spy1") qwm_doc.spy1.Placement = FreeCAD.Placement( FreeCAD.Vector(0.05, -7.5, 0.0), FreeCAD.Rotation(0.5, 0.5, 0.5, -0.5)) qwm_doc.spy1.Orientation = "Y" qwm_doc.spy1.Position = -7.5 qwm_doc.spy1.Length = 0.0 qwm_doc.spy1.Width = 0.1 FreeCAD.Gui.ActiveDocument.spy1.ShowText = False FreeCAD.Gui.ActiveDocument.spy1.TextSize = 14 FreeCAD.Gui.ActiveDocument.spy1.TextPlace = 3 QW_Modeller.addQWObject("QW_Modeller::SnappingPlane", "spy2") qwm_doc.spy2.Placement = FreeCAD.Placement( FreeCAD.Vector(0.05, 7.5, 0.0), FreeCAD.Rotation(0.5, 0.5, 0.5, -0.5)) qwm_doc.spy2.Orientation = "Y" qwm_doc.spy2.Position = 7.5 qwm_doc.spy2.Length = 0.0 qwm_doc.spy2.Width = 0.1 FreeCAD.Gui.ActiveDocument.spy2.ShowText = False FreeCAD.Gui.ActiveDocument.spy2.TextSize = 14 FreeCAD.Gui.ActiveDocument.spy2.TextPlace = 3 QW_Modeller.addQWObject("QW_Modeller::TemplatePort", "inp") qwm_doc.inp.Length = 10.0 qwm_doc.inp.Width = 5.0 qwm_doc.inp.Placement = FreeCAD.Placement( FreeCAD.Vector(0.0, 0.0, -20.0), FreeCAD.Rotation(0.0, 0.0, 0.0, 1.0)) qwm_doc.inp.Orientation = "Z" qwm_doc.inp.Position = -20.0 qwm_doc.inp.Activity = "PLUS" qwm_doc.inp.Type = "Source" qwm_doc.inp.SymmetryH = False qwm_doc.inp.SymmetryV = False qwm_doc.inp.PointCoordX = 0.0 qwm_doc.inp.PointCoordY = 0.0 qwm_doc.inp.PointCoordZ = -20.0 qwm_doc.inp.effectivePermitivityMode = "AUTO" qwm_doc.inp.Excitation = QW_Modeller.TemplateExcitation( QW_Modeller.DriveFunction(QW_Modeller.Waveform('delta'), 1, 0, 1, 0), 'TEM', 'Ex', 1, QW_Modeller.TemplateGenerationConf('Automatic', (10, 0.2), (9, 11, 0.01), 1, 50, 1, 0)) qwm_doc.inp.MultiPointExcitation = QW_Modeller.MultiPointPortExcitation( 0, "0.1") qwm_doc.inp.Postprocessing = QW_Modeller.PortPostprocessing(0, 0, 1) qwm_doc.inp.ReferenceOffset = abs(qwm_doc.inp.PointCoordZ - -15.0)
def set_Excitation(qwm_doc): QW_Modeller.addQWObject("QW_Modeller::TemplatePort", "port") qwm_doc.port.Length = 20.0 qwm_doc.port.Width = 1.0 qwm_doc.port.Placement = FreeCAD.Placement( FreeCAD.Vector(-20.0, 18.0, 0.5), FreeCAD.Rotation(0.5, 0.5, 0.5, 0.5)) qwm_doc.port.Orientation = "X" qwm_doc.port.Position = -20.0 qwm_doc.port.Activity = "PLUS" qwm_doc.port.Type = "Source" qwm_doc.port.SymmetryH = False qwm_doc.port.SymmetryV = False qwm_doc.port.PointCoordX = -20.0 qwm_doc.port.PointCoordY = 18.0 qwm_doc.port.PointCoordZ = 0.5 qwm_doc.port.effectivePermitivityMode = "AUTO" qwm_doc.port.Excitation = QW_Modeller.TemplateExcitation( QW_Modeller.DriveFunction(QW_Modeller.Waveform('delta'), 1, 0, 1, 0), 'TEM', 'Ex', 1, QW_Modeller.TemplateGenerationConf('Automatic', (10, 0.2), (9, 11, 0.01), 1, 50, 1, 0)) qwm_doc.port.MultiPointExcitation = QW_Modeller.MultiPointPortExcitation( 0, "0.1") qwm_doc.port.Postprocessing = QW_Modeller.PortPostprocessing(0, 0, 1) qwm_doc.port.ReferenceOffset = abs(qwm_doc.port.PointCoordX - -2.0) QW_Modeller.addQWObject("QW_Modeller::AbsorbingWall", "abs_left") qwm_doc.abs_left.Orientation = "X" qwm_doc.abs_left.Length = 697.8187226079011 qwm_doc.abs_left.Width = 1.0 qwm_doc.abs_left.Placement = FreeCAD.Placement( FreeCAD.Vector(-80.0, 348.90936130395056, 0.5), FreeCAD.Rotation(0.5, 0.5, 0.5, 0.5)) qwm_doc.abs_left.Position = -80.0 qwm_doc.abs_left.Activity = "PLUS" FreeCAD.Gui.ActiveDocument.abs_left.AbsorberDepth = 1.00000 FreeCAD.Gui.ActiveDocument.abs_left.ShowText = True FreeCAD.Gui.ActiveDocument.abs_left.TextSize = 14 FreeCAD.Gui.ActiveDocument.abs_left.TextPlace = 3 qwm_doc.abs_left.Type = "MUR" qwm_doc.abs_left.EffectivePermittivity = 1 QW_Modeller.addQWObject("QW_Modeller::AbsorbingWall", "abs_right") qwm_doc.abs_right.Orientation = "X" qwm_doc.abs_right.Length = 697.8187226079011 qwm_doc.abs_right.Width = 1.0 qwm_doc.abs_right.Placement = FreeCAD.Placement( FreeCAD.Vector(552.0, 348.90936130395056, 0.5), FreeCAD.Rotation(0.5, 0.5, 0.5, 0.5)) qwm_doc.abs_right.Position = 552.0 qwm_doc.abs_right.Activity = "MINUS" FreeCAD.Gui.ActiveDocument.abs_right.AbsorberDepth = 1.00000 FreeCAD.Gui.ActiveDocument.abs_right.ShowText = True FreeCAD.Gui.ActiveDocument.abs_right.TextSize = 14 FreeCAD.Gui.ActiveDocument.abs_right.TextPlace = 3 qwm_doc.abs_right.Type = "MUR" qwm_doc.abs_right.EffectivePermittivity = 1 qwm_doc.QW_Mesh_Borders.BorderXMin = "PMC" qwm_doc.QW_Mesh_Borders.BorderXMax = "PEC" qwm_doc.QW_Mesh_Borders.BorderYMin = "PEC" qwm_doc.QW_Mesh_Borders.BorderYMax = "PEC" qwm_doc.QW_Mesh_Borders.BorderZMin = "PEC" qwm_doc.QW_Mesh_Borders.BorderZMax = "PEC" qwm_doc.QW_Mesh.AutoAdjustMeshBoundaryCheck = False qwm_doc.QW_Mesh.bboxminX = -80.0 qwm_doc.QW_Mesh.bboxmaxX = 552.0 QW_Modeller.addQWObject("QW_Modeller::AbsorbingWall", "abs_up") qwm_doc.abs_up.Orientation = "Y" qwm_doc.abs_up.Length = 1.0 qwm_doc.abs_up.Width = 632.0 qwm_doc.abs_up.Placement = FreeCAD.Placement( FreeCAD.Vector(236.0, 697.8187226079011, 0.5), FreeCAD.Rotation(0.5, 0.5, 0.5, -0.5)) qwm_doc.abs_up.Position = 697.8187226079011 qwm_doc.abs_up.Activity = "MINUS" FreeCAD.Gui.ActiveDocument.abs_up.AbsorberDepth = 1.00000 FreeCAD.Gui.ActiveDocument.abs_up.ShowText = True FreeCAD.Gui.ActiveDocument.abs_up.TextSize = 14 FreeCAD.Gui.ActiveDocument.abs_up.TextPlace = 3 qwm_doc.abs_up.Type = "MUR" qwm_doc.abs_up.EffectivePermittivity = 1 QW_Modeller.addQWObject("QW_Modeller::NTFBox", "ntfbox") qwm_doc.ntfbox.Length = 512.0 qwm_doc.ntfbox.Width = 617.8187226079011 qwm_doc.ntfbox.Height = 0.5 qwm_doc.ntfbox.Placement = FreeCAD.Placement( FreeCAD.Vector(236.0, 308.90936130395056, 0.5), FreeCAD.Rotation(0.0, 0.0, 0.0, 1.0)) FreeCAD.Gui.ActiveDocument.ntfbox.ShowText = True FreeCAD.Gui.ActiveDocument.ntfbox.TextSize = 14
def set_Excitation(qwm_doc): QW_Modeller.addQWObject("QW_Modeller::AbsorbingWall", "pml_bot") qwm_doc.pml_bot.Orientation = "Z" qwm_doc.pml_bot.Length = 80.0 qwm_doc.pml_bot.Width = 120.0 qwm_doc.pml_bot.Placement = FreeCAD.Placement( FreeCAD.Vector(20.0, 45.0, -20.0), FreeCAD.Rotation(0.0, 0.0, 0.0, 1.0)) qwm_doc.pml_bot.Position = -20.0 qwm_doc.pml_bot.Activity = "PLUS" FreeCAD.Gui.ActiveDocument.pml_bot.AbsorberDepth = 2.00000 FreeCAD.Gui.ActiveDocument.pml_bot.ShowText = True FreeCAD.Gui.ActiveDocument.pml_bot.TextSize = 14 FreeCAD.Gui.ActiveDocument.pml_bot.TextPlace = 3 qwm_doc.pml_bot.Type = "PML" qwm_doc.pml_bot.PMLProfile = "Parabolic" qwm_doc.pml_bot.Thickness = 8 qwm_doc.pml_bot.ParabolicA = 1.00000 QW_Modeller.addQWObject("QW_Modeller::AbsorbingWall", "pml_top") qwm_doc.pml_top.Orientation = "Z" qwm_doc.pml_top.Length = 80.0 qwm_doc.pml_top.Width = 120.0 qwm_doc.pml_top.Placement = FreeCAD.Placement( FreeCAD.Vector(20.0, 45.0, 20.0), FreeCAD.Rotation(0.0, 0.0, 0.0, 1.0)) qwm_doc.pml_top.Position = 20.0 qwm_doc.pml_top.Activity = "MINUS" FreeCAD.Gui.ActiveDocument.pml_top.AbsorberDepth = 2.00000 FreeCAD.Gui.ActiveDocument.pml_top.ShowText = True FreeCAD.Gui.ActiveDocument.pml_top.TextSize = 14 FreeCAD.Gui.ActiveDocument.pml_top.TextPlace = 3 qwm_doc.pml_top.Type = "PML" qwm_doc.pml_top.PMLProfile = "Parabolic" qwm_doc.pml_top.Thickness = 8 qwm_doc.pml_top.ParabolicA = 1.00000 QW_Modeller.addQWObject("QW_Modeller::AbsorbingWall", "pml_left") qwm_doc.pml_left.Orientation = "X" qwm_doc.pml_left.Length = 120.0 qwm_doc.pml_left.Width = 40.0 qwm_doc.pml_left.Placement = FreeCAD.Placement( FreeCAD.Vector(-20.0, 45.0, 0.0), FreeCAD.Rotation(0.5, 0.5, 0.5, 0.5)) qwm_doc.pml_left.Position = -20.0 qwm_doc.pml_left.Activity = "PLUS" FreeCAD.Gui.ActiveDocument.pml_left.AbsorberDepth = 2.00000 FreeCAD.Gui.ActiveDocument.pml_left.ShowText = True FreeCAD.Gui.ActiveDocument.pml_left.TextSize = 14 FreeCAD.Gui.ActiveDocument.pml_left.TextPlace = 3 qwm_doc.pml_left.Type = "PML" qwm_doc.pml_left.PMLProfile = "Parabolic" qwm_doc.pml_left.Thickness = 8 qwm_doc.pml_left.ParabolicA = 1.00000 QW_Modeller.addQWObject("QW_Modeller::AbsorbingWall", "pml_right") qwm_doc.pml_right.Orientation = "X" qwm_doc.pml_right.Length = 120.0 qwm_doc.pml_right.Width = 40.0 qwm_doc.pml_right.Placement = FreeCAD.Placement( FreeCAD.Vector(60.0, 45.0, 0.0), FreeCAD.Rotation(0.5, 0.5, 0.5, 0.5)) qwm_doc.pml_right.Position = 60.0 qwm_doc.pml_right.Activity = "MINUS" FreeCAD.Gui.ActiveDocument.pml_right.AbsorberDepth = 2.00000 FreeCAD.Gui.ActiveDocument.pml_right.ShowText = True FreeCAD.Gui.ActiveDocument.pml_right.TextSize = 14 FreeCAD.Gui.ActiveDocument.pml_right.TextPlace = 3 qwm_doc.pml_right.Type = "PML" qwm_doc.pml_right.PMLProfile = "Parabolic" qwm_doc.pml_right.Thickness = 8 qwm_doc.pml_right.ParabolicA = 1.00000 QW_Modeller.addQWObject("QW_Modeller::AbsorbingWall", "pml_down") qwm_doc.pml_down.Orientation = "Y" qwm_doc.pml_down.Length = 40.0 qwm_doc.pml_down.Width = 80.0 qwm_doc.pml_down.Placement = FreeCAD.Placement( FreeCAD.Vector(20.0, -15.0, 0.0), FreeCAD.Rotation(0.5, 0.5, 0.5, -0.5)) qwm_doc.pml_down.Position = -15.0 qwm_doc.pml_down.Activity = "PLUS" FreeCAD.Gui.ActiveDocument.pml_down.AbsorberDepth = 2.00000 FreeCAD.Gui.ActiveDocument.pml_down.ShowText = True FreeCAD.Gui.ActiveDocument.pml_down.TextSize = 14 FreeCAD.Gui.ActiveDocument.pml_down.TextPlace = 3 qwm_doc.pml_down.Type = "PML" qwm_doc.pml_down.PMLProfile = "Parabolic" qwm_doc.pml_down.Thickness = 8 qwm_doc.pml_down.ParabolicA = 1.00000 QW_Modeller.addQWObject("QW_Modeller::AbsorbingWall", "pml_up") qwm_doc.pml_up.Orientation = "Y" qwm_doc.pml_up.Length = 40.0 qwm_doc.pml_up.Width = 80.0 qwm_doc.pml_up.Placement = FreeCAD.Placement( FreeCAD.Vector(20.0, 105.0, 0.0), FreeCAD.Rotation(0.5, 0.5, 0.5, -0.5)) qwm_doc.pml_up.Position = 105.0 qwm_doc.pml_up.Activity = "MINUS" FreeCAD.Gui.ActiveDocument.pml_up.AbsorberDepth = 2.00000 FreeCAD.Gui.ActiveDocument.pml_up.ShowText = True FreeCAD.Gui.ActiveDocument.pml_up.TextSize = 14 FreeCAD.Gui.ActiveDocument.pml_up.TextPlace = 3 qwm_doc.pml_up.Type = "PML" qwm_doc.pml_up.PMLProfile = "Parabolic" qwm_doc.pml_up.Thickness = 8 qwm_doc.pml_up.ParabolicA = 1.00000 QW_Modeller.addQWObject("QW_Modeller::NTFBox", "ntfbox") qwm_doc.ntfbox.Length = 50.0 qwm_doc.ntfbox.Width = 100.0 qwm_doc.ntfbox.Height = 13.1496 qwm_doc.ntfbox.Placement = FreeCAD.Placement( FreeCAD.Vector(20.0, 45.0, 0.0), FreeCAD.Rotation(0.0, 0.0, 0.0, 1.0)) FreeCAD.Gui.ActiveDocument.ntfbox.ShowText = True FreeCAD.Gui.ActiveDocument.ntfbox.TextSize = 14 QW_Modeller.addQWObject("QW_Modeller::SnappingPlane", "spxl1") qwm_doc.spxl1.Placement = FreeCAD.Placement( FreeCAD.Vector(14.0, 0.5, 0.0), FreeCAD.Rotation(0.5, 0.5, 0.5, 0.5)) qwm_doc.spxl1.Orientation = "X" qwm_doc.spxl1.Position = 14.0 qwm_doc.spxl1.Length = 1.0 qwm_doc.spxl1.Width = 0.0 FreeCAD.Gui.ActiveDocument.spxl1.ShowText = False FreeCAD.Gui.ActiveDocument.spxl1.TextSize = 14 FreeCAD.Gui.ActiveDocument.spxl1.TextPlace = 3 QW_Modeller.addQWObject("QW_Modeller::SnappingPlane", "spxp1") qwm_doc.spxp1.Placement = FreeCAD.Placement( FreeCAD.Vector(26.0, 0.5, 0.0), FreeCAD.Rotation(0.5, 0.5, 0.5, 0.5)) qwm_doc.spxp1.Orientation = "X" qwm_doc.spxp1.Position = 26.0 qwm_doc.spxp1.Length = 1.0 qwm_doc.spxp1.Width = 0.0 FreeCAD.Gui.ActiveDocument.spxp1.ShowText = False FreeCAD.Gui.ActiveDocument.spxp1.TextSize = 14 FreeCAD.Gui.ActiveDocument.spxp1.TextPlace = 3 QW_Modeller.addQWObject("QW_Modeller::SnappingPlane", "spzl1") qwm_doc.spzl1.Placement = FreeCAD.Placement( FreeCAD.Vector(0.5, 0.5, -2.0), FreeCAD.Rotation(0.0, 0.0, 0.0, 1.0)) qwm_doc.spzl1.Orientation = "Z" qwm_doc.spzl1.Position = -2.0 qwm_doc.spzl1.Length = 1.0 qwm_doc.spzl1.Width = 1.0 FreeCAD.Gui.ActiveDocument.spzl1.ShowText = False FreeCAD.Gui.ActiveDocument.spzl1.TextSize = 14 FreeCAD.Gui.ActiveDocument.spzl1.TextPlace = 3 QW_Modeller.addQWObject("QW_Modeller::SnappingPlane", "spzp1") qwm_doc.spzp1.Placement = FreeCAD.Placement( FreeCAD.Vector(0.5, 0.5, 5.0), FreeCAD.Rotation(0.0, 0.0, 0.0, 1.0)) qwm_doc.spzp1.Orientation = "Z" qwm_doc.spzp1.Position = 5.0 qwm_doc.spzp1.Length = 1.0 qwm_doc.spzp1.Width = 1.0 FreeCAD.Gui.ActiveDocument.spzp1.ShowText = False FreeCAD.Gui.ActiveDocument.spzp1.TextSize = 14 FreeCAD.Gui.ActiveDocument.spzp1.TextPlace = 3 QW_Modeller.addQWObject("QW_Modeller::TemplatePort", "ip") qwm_doc.ip.Length = 3.1496 qwm_doc.ip.Width = 12.0 qwm_doc.ip.Placement = FreeCAD.Placement( FreeCAD.Vector(20.0, 0.0, 1.5748), FreeCAD.Rotation(0.5, 0.5, 0.5, -0.5)) qwm_doc.ip.Orientation = "Y" qwm_doc.ip.Position = 0.0 qwm_doc.ip.Activity = "PLUS" qwm_doc.ip.Type = "Source" qwm_doc.ip.SymmetryH = False qwm_doc.ip.SymmetryV = False qwm_doc.ip.PointCoordX = 20.0 qwm_doc.ip.PointCoordY = 0.0 qwm_doc.ip.PointCoordZ = 1.5748 qwm_doc.ip.effectivePermitivityMode = "AUTO" qwm_doc.ip.Excitation = QW_Modeller.TemplateExcitation( QW_Modeller.DriveFunction(QW_Modeller.Waveform('delta'), 1, 0, 1, 0), 'TEM', 'Ex', 1, QW_Modeller.TemplateGenerationConf('Automatic', (10, 0.2), (9, 11, 0.01), 1, 50, 1, 0)) qwm_doc.ip.MultiPointExcitation = QW_Modeller.MultiPointPortExcitation( 0, "0.1") qwm_doc.ip.Postprocessing = QW_Modeller.PortPostprocessing(0, 0, 1) qwm_doc.ip.ReferenceOffset = abs(qwm_doc.ip.PointCoordY - 0.0)