Disclosure of Invention
In view of this, the present application provides an electromagnetic communication beam visualization method, an electromagnetic communication beam visualization apparatus, an electronic device, and a storage medium, so as to solve the technical problems of poor universality and insufficient adaptability of the electromagnetic environment visualization method in the prior art.
In one aspect, an embodiment of the present application provides an electromagnetic communication beam visualization method, including:
acquiring communication link configuration parameters of electromagnetic communication beams;
establishing a three-dimensional virtual model of a propagation environment and a three-dimensional virtual model of a propagation path according to the communication link configuration parameters; displaying the three-dimensional virtual model of the propagation path in the three-dimensional virtual model of the propagation environment;
acquiring a radiation intensity configuration parameter of an electromagnetic communication beam;
and rendering and drawing the radiation intensity of the electromagnetic communication beam according to the radiation intensity configuration parameter and the selected visualization mode.
Further, according to the communication link configuration parameters, a three-dimensional virtual model of a propagation environment and a three-dimensional virtual model of a propagation path are established; the method comprises the following steps:
acquiring physical information and position information of an object in an electromagnetic communication beam propagation environment;
selecting a transmission model according to a propagation mode in a communication link configuration parameter of an electromagnetic communication beam;
establishing a three-dimensional virtual model of the propagation environment according to the selected transmission model based on the physical information and the position information of the object in the propagation environment, and determining the position coordinates of the object in the three-dimensional virtual model of the propagation environment;
determining a propagation path of an electromagnetic communication beam based on the signal transmitting point, the signal receiving point and position coordinates of the object in the three-dimensional virtual model of the propagation environment;
and establishing a three-dimensional virtual model of the propagation path based on the propagation path of the electromagnetic communication beam and the corresponding electric field intensity and phase thereof.
Further, selecting a transmission model according to an electromagnetic communication beam propagation mode in communication link configuration parameters of the electromagnetic communication beam; the method comprises the following steps:
when the electromagnetic communication wave beam propagation mode is a ground wave transmission mode, selecting an electromagnetic wave beam earth surface transmission model;
when the electromagnetic communication beam transmission mode is a sky wave transmission mode, selecting an electromagnetic beam high-altitude electromagnetic layer transmission model;
when the electromagnetic communication beam propagation mode is a direct wave transmission mode, an electromagnetic beam receiving entity and a transmitting entity transmission model are selected.
Further, after acquiring the radiation intensity configuration parameters of the electromagnetic communication beam, the method further includes: and judging whether the radiation intensity configuration parameters comprise electromagnetic interference configuration parameters or not, if so, selecting an interference model according to the electromagnetic interference configuration parameters, and drawing and displaying a discrete boundary.
Further, an interference model is selected according to the electromagnetic interference configuration parameters, and a discrete boundary is drawn and displayed; the method comprises the following steps:
selecting a first interference model or a second interference model according to the electromagnetic interference configuration parameters;
synthesizing the electromagnetic interference source field intensity according to the first interference model or the second interference model;
determining a pitch angle sampling step length by adopting a step length function;
discrete subdivision is carried out on the pitch angle by utilizing the pitch angle sampling step length and the subdivision model;
discrete boundaries are drawn and displayed.
Further, the visualization manner includes: an isoline mode, an isosurface mode, and a volume rendering mode.
In another aspect, an embodiment of the present application provides an electromagnetic communication beam visualization apparatus, including:
a communication link configuration parameter obtaining unit, configured to obtain a communication link configuration parameter of the electromagnetic communication beam;
the radiation propagation mode visualization unit is used for establishing a three-dimensional virtual model of a propagation environment and a three-dimensional virtual model of a propagation path according to the communication link configuration parameters; displaying the three-dimensional virtual model of the propagation path in the three-dimensional virtual model of the propagation environment;
the radiation intensity configuration parameter acquisition unit is used for acquiring radiation intensity configuration parameters of electromagnetic communication beams;
and the radiation intensity visualization unit is used for rendering and drawing the radiation intensity of the electromagnetic communication beam according to the radiation intensity configuration parameters and the selected visualization mode.
In another aspect, an embodiment of the present application provides an electronic device, including: a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the electromagnetic communication beam visualization method of an embodiment of the present application when executing the computer program.
In another aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the electromagnetic communication beam visualization method of the present application.
According to the method, the communication link configuration parameters of the electromagnetic communication beams are obtained; establishing a three-dimensional virtual model of a propagation environment and a three-dimensional virtual model of a propagation path according to the communication link configuration parameters; displaying the three-dimensional virtual model of the propagation path in the three-dimensional virtual model of the propagation environment; acquiring a radiation intensity configuration parameter of an electromagnetic communication beam; rendering and drawing the radiation intensity of the electromagnetic communication wave beam according to the radiation intensity configuration parameter and the selected visualization mode; the flexible adaptability of the electromagnetic environment visualization is improved.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
First, the design idea of the embodiment of the present application is briefly introduced.
In the existing electromagnetic environment simulation and visualization technical method, electromagnetic environment modeling and visualization display are coupled tightly, so that the problems of poor universality, insufficient adaptability and the like of the designed electromagnetic environment visualization method are caused.
In order to solve the technical problem, in the embodiments of the present application, a communication link configuration parameter of an electromagnetic communication beam is obtained; establishing a three-dimensional virtual model of a propagation environment and a three-dimensional virtual model of a propagation path according to the communication link configuration parameters; displaying the three-dimensional virtual model of the propagation path in the three-dimensional virtual model of the propagation environment; acquiring a radiation intensity configuration parameter of an electromagnetic communication beam; and rendering and drawing the radiation intensity of the electromagnetic communication beam according to the radiation intensity configuration parameter and the selected visualization mode. Therefore, the modeling and the display of the parameterized visual expression model of the radiation source, the electromagnetic wave beam propagation process, the radiation intensity and other constituent factors in the electromagnetic wave beam propagation process are realized. According to the method and the device, the parameterized and configurable electromagnetic communication beam visualization method is constructed through classification of the electromagnetic signal propagation process, and the flexible adaptability of electromagnetic environment visualization is improved.
After introducing the application scenario and the design concept of the embodiment of the present application, the following describes a technical solution provided by the embodiment of the present application.
As shown in fig. 1, an embodiment of the present application provides an electromagnetic communication beam visualization method, including the following steps:
step 101: acquiring communication link configuration parameters of electromagnetic communication beams;
step 102: displaying a three-dimensional virtual model of a propagation path in the three-dimensional virtual model of the propagation environment according to configuration parameters of the electromagnetic wave communication beam communication link;
specifically, the steps include:
step 2A: acquiring physical information and position information of an object in an electromagnetic communication beam propagation environment;
and step 2B: selecting a transmission model according to a propagation mode in configuration parameters of an electromagnetic wave communication beam communication link;
when the electromagnetic wave beam ground wave propagation mode is a ground wave transmission mode, selecting an electromagnetic wave beam earth surface transmission model;
when the ground wave propagation mode of the electromagnetic wave beam is a sky wave transmission mode, selecting an electromagnetic wave beam high altitude electromagnetic layer transmission model;
when the electromagnetic wave beam ground wave propagation mode is a direct wave transmission mode, selecting an electromagnetic wave beam receiving entity and a transmitting entity transmission model;
and step 2C: establishing a three-dimensional virtual model of the propagation environment according to the selected transmission model based on the physical information and the position information of the object in the propagation environment, and determining the position coordinates of the object in the three-dimensional virtual model of the propagation environment;
step 2D: determining a propagation path of the electromagnetic wave based on the signal sending point of the electromagnetic wave, the signal receiving point of the electromagnetic wave and the position coordinates of the object in the three-dimensional virtual model of the propagation environment;
and step 2E: establishing a three-dimensional virtual model of the propagation path based on the propagation path of the electromagnetic wave and the corresponding electric field intensity and phase;
step 2F: a three-dimensional virtual model of a propagation path of an electromagnetic wave is displayed in a three-dimensional virtual model of a propagation environment.
Step 103: acquiring a radiation intensity configuration parameter of an electromagnetic communication beam;
wherein, the electric field intensity when the electromagnetic communication wave beam reaches the signal receiving point is obtained as the target electric field intensity.
Step 104: rendering and drawing the radiation intensity of the electromagnetic waves according to the selected visualization mode according to the radiation intensity configuration parameters of the electromagnetic communication beams;
specifically, the method comprises the following steps:
step 4A: judging whether the radiation intensity configuration parameters comprise electromagnetic interference configuration parameters or not, if so, entering a step 4B, and otherwise, entering a step 4C;
and step 4B: selecting an interference model according to the electromagnetic interference configuration parameters, and drawing and displaying a discrete boundary;
specifically, the method comprises the following steps:
step S1: loading radar echo data;
step S2: selecting an interference model according to the electromagnetic interference configuration parameters;
the first interference model:
in the formula, theta is the radar beam width;
is the azimuth; p
tIs the emission power of the radiation source; τ is the pulse width; g
rIs the receive antenna power gain; λ is the wavelength; f
tA pattern propagation factor for the transmit antenna to the target; l is the loss coefficient of the emission source; p
tjThe spectral density of the power emitted by the radiation source; g
jGain of the radiation source antenna in the target direction; c
bA bandwidth correction factor; l system loss factor; d
oAnd monitoring the factor.
The second interference model:
in the formula, F
jThe target receiving antenna directional diagram coefficient is included; sigma is a radar scattering cross section, and theta is a radar beam width;
is the azimuth; p
tIs the emission power of the radiation source; τ is the pulse width; λ is the wavelength; f
tA pattern propagation factor for the transmit antenna to the target; f
rA pattern propagation factor for a target to a receive antenna; l is
jIs the distance of the radiation source from the target; p
tjThe spectral density of the power emitted by the radiation source; g
jGain of the radiation source antenna in the target direction; c
bA bandwidth correction factor; l system loss factor; d
oMonitoring a factor; l is the loss coefficient of the emission source;
step S3: synthesizing the electromagnetic interference source field intensity;
the modulation signals sent by the 2 interference radiation sources are assumed to be respectively represented as m1(t) and m2(t) distances r from the signal reception points1And r2Incident vector is vE1And vE2In the direction of the magnetic field vH1And vH2The carrier frequencies of the two radiation sources are omega1And ω2Phase of phi1And phi2Electric field intensity E of two radiation sources1And E2Magnetic field intensity H1And H2Comprises the following steps:
E1=E1mm1(t)cos(ω1t-k1r1+Φ1)vE1
E2=E2mm2(t)cos(ω2t-k2r2+Φ2)vE2
H1=H1mm1(t)cos(ω1t-k1r1+Φ1)vH1
H2=H2mm2(t)cos(ω2t-k2r2+Φ2)vH2
vH1=vλ1×vE1
vH2=vλ2×vE2
H1m=E1m/η0
H2m=E2m/η0
wherein E is1mAnd E2mThe electric field strengths of 2 interference radiation sources respectively; k is a radical of1And k2Boltzmann constant; eta0Wave impedance coefficient for electromagnetic wave: h1mAnd H2mThe magnetic field strengths of 2 interference radiation sources respectively; v. ofλ1And vλ2Is an incident vector;
the average power density HavCan be expressed as:
wherein T is a time period.
Interference effects occur under the same frequency conditions, and assuming w:
in the formula (I), the compound is shown in the specification,
step S3: determining a pitch angle sampling step length by adopting a step length function;
wherein the step function is:
in the formula: fuyangjiao _ step is the pitch angle sampling step, fangweijiao _ step is the azimuth angle sampling step, bili _ xishu2 is the scaling factor of the sampling region, R is the radius of curvaturemaxIs the maximum radius of curvature;
step S4: discrete subdivision is carried out on the pitch angle based on the pitch angle sampling step length and the subdivision model;
the subdivision model is as follows:
wherein, | θi- θ | is the difference between the pitch angle and the initial pitch angle of the current point; fuyanjiao _ step is a pitch angle sampling step length during uniform sampling; bili _ xishu1 is the non-uniform region scale factor;
step S5: discrete boundaries are drawn.
And step 4C: rendering and drawing the target electric field strength according to the selected visualization mode;
the selected visualization mode comprises the following steps: an isoline mode, an isosurface mode and a volume rendering mode;
contour line mode: the contour is operated in units of squares:
inputting a text data format, and reading magnetic field data into an internal memory;
using GetMainSurface and GetAuxSurface methods in the read file class to respectively obtain two planes of a basic point and an auxiliary point in the plane;
drawing a contour line in a plane by using GL _ LINES parameters in OpenGL;
iso-surface mode:
inputting a text data format, and reading magnetic field data into an internal memory;
using GetMainSurface and GetAuxSurface methods in the read file class to respectively obtain two planes of a basic point and an auxiliary point in the plane;
drawing a contour line in a plane by using GL _ LINES parameters in OpenGL;
expanding the contour line of the XZ surface along an X-axis straight line or according to a two-dimensional function curve to generate an isosurface;
the volume rendering mode is as follows: calling an OpenGL library function glcolor4f () command and setting a current drawing color;
based on OpenGL, a semitransparent effect is achieved by adopting an alpha mixing technology. In the implementation process, an OpenGL library function glEnable (GL-BLEND) command is called to start an alpha blending mode, and when the blending function is started, the combination mode of the source color and the target color is controlled by a blending equation and is implemented by a command glBlendFunc ().
Different blending modes can be realized by modifying parameters in the glBlendFunc () to achieve different color blending effects, and the blending modes are realized by utilizing a glBlendFunc (GL-src-alpha, GL-ONE-MINUS-src-alpha) command.
Based on the foregoing embodiments, an electromagnetic communication beam visualization apparatus is provided in the embodiments of the present application, and referring to fig. 2, an electromagnetic communication beam visualization apparatus 200 provided in the embodiments of the present application at least includes:
a communication link configuration parameter obtaining unit 201, configured to obtain a communication link configuration parameter of an electromagnetic communication beam;
the radiation propagation mode visualization unit 202 is configured to establish a three-dimensional virtual model of a propagation environment and a three-dimensional virtual model of a propagation path according to the communication link configuration parameters; displaying the three-dimensional virtual model of the propagation path in the three-dimensional virtual model of the propagation environment;
a radiation intensity configuration parameter obtaining unit 203, configured to obtain a radiation intensity configuration parameter of the electromagnetic communication beam;
and the radiation intensity visualization unit 204 is configured to render and draw the radiation intensity of the electromagnetic communication beam according to the radiation intensity configuration parameter and in a selected visualization manner.
It should be noted that the principle of the electromagnetic communication beam visualization apparatus 200 provided in the embodiment of the present application for solving the technical problem is similar to that of the electromagnetic communication beam visualization method provided in the embodiment of the present application, and therefore, for implementation of the electromagnetic communication beam visualization apparatus 200 provided in the embodiment of the present application, reference may be made to implementation of the electromagnetic communication beam visualization method provided in the embodiment of the present application, and repeated details are not repeated.
Based on the foregoing embodiments, an embodiment of the present application further provides an electronic device, and referring to fig. 3, an electronic device 300 provided in the embodiment of the present application at least includes: a processor 301, a memory 302 and a computer program stored on the memory 302 and executable on the processor 301, the processor 301 implementing the electromagnetic communication beam visualization method provided by the embodiments of the present application when executing the computer program.
The electronic device 300 provided by the embodiment of the present application may further include a bus 303 connecting different components (including the processor 301 and the memory 302). Bus 303 represents one or more of any of several types of bus structures, including a memory bus, a peripheral bus, a local bus, and so forth.
The Memory 302 may include readable media in the form of volatile Memory, such as Random Access Memory (RAM) 3021 and/or cache Memory 3022, and may further include Read Only Memory (ROM) 3023.
The memory 302 may also include a program tool 3024 having a set (at least one) of program modules 3025, the program modules 3025 including, but not limited to: an operating subsystem, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Electronic device 300 may also communicate with one or more external devices 304 (e.g., keyboard, remote control, etc.), with one or more devices that enable a user to interact with electronic device 300 (e.g., cell phone, computer, etc.), and/or with any device that enables electronic device 300 to communicate with one or more other electronic devices 300 (e.g., router, modem, etc.). Such communication may be through an Input/Output (I/O) interface 305. Also, the electronic device 300 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public Network, such as the internet) via the Network adapter 306. As shown in FIG. 3, the network adapter 306 communicates with the other modules of the electronic device 300 via the bus 303. It should be understood that although not shown in FIG. 3, other hardware and/or software modules may be used in conjunction with electronic device 300, including but not limited to: microcode, device drivers, Redundant processors, external disk drive Arrays, disk array (RAID) subsystems, tape drives, and data backup storage subsystems, to name a few.
It should be noted that the electronic device 300 shown in fig. 3 is only an example, and should not bring any limitation to the functions and the scope of the application of the embodiments.
Embodiments of the present application further provide a computer-readable storage medium, which stores computer instructions, and the computer instructions, when executed by a processor, implement the electromagnetic communication beam visualization method provided by embodiments of the present application.
It should be noted that although several units or sub-units of the apparatus are mentioned in the above detailed description, such division is merely exemplary and not mandatory. Indeed, the features and functions of two or more units described above may be embodied in one unit, according to embodiments of the application. Conversely, the features and functions of one unit described above may be further divided into embodiments by a plurality of units.
Further, while the operations of the methods of the present application are depicted in the drawings in a particular order, this does not require or imply that these operations must be performed in this particular order, or that all of the illustrated operations must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.