farFieldBC
Description
Creation
Description
ffbc = farFieldBC(Name=Value)
creates a
farFieldBC
object and sets properties using one
or more name-value arguments. You must specify the thickness value. Specifying the
exponent and scaling values is optional.
Properties
Thickness
— Width of far field absorbing region
positive number
Width of the far field absorbing region, specified as a positive number. The solver uses an absorbing boundary condition for a harmonic analysis.
Data Types: double
Exponent
— Exponent defining attenuation rate
4 (default) | positive number
Exponent defining the attenuation rate of the waves entering the absorbing region, specified as a positive number. The solver uses an absorbing boundary condition for a harmonic analysis.
Data Types: double
Scaling
— Scaling parameter defining attenuation rate
5 (default) | positive number
Scaling parameter defining the attenuation rate of the waves entering the absorbing region, specified as a positive number. The solver uses an absorbing boundary condition for a harmonic analysis.
Data Types: double
Examples
Boundary Conditions for 2-D Harmonic Electromagnetic Analysis
Specify an absorbing boundary condition for an femodel
object representing a harmonic electromagnetic problem.
Create an femodel
object for solving a harmonic electromagnetic problem with an electric field type. Assign a geometry representing a 2-D plate with a hole to the model.
model = femodel(AnalysisType="electricHarmonic", ... Geometry="PlateHolePlanar.stl");
Plot the geometry with the edge labels.
pdegplot(model.Geometry,EdgeLabels="on");
xlim([-1 11])
ylim([-1 21])
Specify an electric field on the circular edge.
model.EdgeBC(5) = edgeBC(ElectricField=[10 0]); model.EdgeBC
ans = 1x5 edgeBC array Properties for analysis type: electricHarmonic Index ElectricField FarField 1 [] [] 2 [] [] 3 [] [] 4 [] [] 5 [10 0] [] Show all properties
Specify absorbing regions with a thickness of 2 on the edges of the rectangle. Use the default attenuation rate for the absorbing regions.
ffbc = farFieldBC(Thickness=2); model.EdgeBC(1:4) = edgeBC(FarField=ffbc); model.EdgeBC
ans = 1x5 edgeBC array Properties for analysis type: electricHarmonic Index ElectricField FarField 1 [] [1x1 farFieldBC] 2 [] [1x1 farFieldBC] 3 [] [1x1 farFieldBC] 4 [] [1x1 farFieldBC] 5 [10 0] [] Show all properties
Check the parameters of the absorbing region for edge 1.
model.EdgeBC(1).FarField
ans = farFieldBC with properties: Thickness: 2 Exponent: 4 Scaling: 5
Now specify the attenuation rate for the absorbing regions.
ffbc = farFieldBC(Thickness=2,Exponent=3,Scaling=100); model.EdgeBC(1:4) = edgeBC(FarField=ffbc); model.EdgeBC(1).FarField
ans = farFieldBC with properties: Thickness: 2 Exponent: 3 Scaling: 100
Boundary Conditions for 3-D Harmonic Electromagnetic Analysis
Specify an absorbing boundary condition for an femodel
object representing a harmonic electromagnetic problem.
Create an femodel
object for solving a harmonic electromagnetic problem with an electric field type. Assign a geometry representing a 3-D plate with a hole to the model.
model = femodel(AnalysisType="electricHarmonic", ... Geometry="PlateHoleSolid.stl");
Plot the geometry with the face labels.
pdegplot(model.Geometry,FaceLabels="on", ... FaceAlpha=0.4);
Specify the electric field on the circular face.
model.FaceBC(7) = faceBC(ElectricField=[10 0 0]); model.FaceBC
ans = 1x7 faceBC array Properties for analysis type: electricHarmonic Index ElectricField FarField 1 [] [] 2 [] [] 3 [] [] 4 [] [] 5 [] [] 6 [] [] 7 [10 0 0] [] Show all properties
Specify absorbing regions with a thickness of 2 on the sides of the plate. Use the default attenuation rate for the absorbing regions.
ffbc = farFieldBC(Thickness=2); model.FaceBC(3:6) = faceBC(FarField=ffbc); model.FaceBC
ans = 1x7 faceBC array Properties for analysis type: electricHarmonic Index ElectricField FarField 1 [] [] 2 [] [] 3 [] [1x1 farFieldBC] 4 [] [1x1 farFieldBC] 5 [] [1x1 farFieldBC] 6 [] [1x1 farFieldBC] 7 [10 0 0] [] Show all properties
Check the parameters of the absorbing region for face 6.
model.FaceBC(6).FarField
ans = farFieldBC with properties: Thickness: 2 Exponent: 4 Scaling: 5
Now specify the attenuation rate for the absorbing regions.
ffbc = farFieldBC(Thickness=2,Exponent=3,Scaling=100); model.FaceBC(3:6) = faceBC(FarField=ffbc); model.FaceBC(6).FarField
ans = farFieldBC with properties: Thickness: 2 Exponent: 3 Scaling: 100
References
[1] Larson, M.G. and Bengzon, F. The Finite Element Method: Theory, Implementation, and Applications. Springer Berlin, Heidelberg, 2013.
Version History
Introduced in R2023a
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)