← 返回资讯屏轩教育 · 行业资讯

Magnetism & Electromagnetism in Computer Science | 计算机科学中的磁性与电磁学

2026-08-30 00:13 · 本文部分内容由AI辅助创作

📚 Magnetism & Electromagnetism in Computer Science | 计算机科学中的磁性与电磁学

Magnetism and electromagnetism form the hidden foundation of modern computing. Though we often think of computers as purely electronic devices, most long-term data storage — from hard disk drives to magnetic tape backups — relies on magnetic principles. Understanding these concepts is essential for any IGCSE Computer Science student preparing for Edexcel examinations.

磁性与电磁学构成了现代计算机的隐形基础。尽管我们常认为计算机是纯电子设备,但大多数长期数据存储——从硬盘驱动器到磁带备份——都依赖于磁性原理。理解这些概念对于任何备考爱德思 IGCSE 计算机科学的学生来说都至关重要。


1. What Is Magnetism? | 什么是磁性?

Magnetism is a physical phenomenon produced by the motion of electric charge. In materials such as iron, cobalt and nickel, the alignment of electrons creates magnetic domains — tiny regions where magnetic fields point in the same direction. When these domains are aligned, the material becomes magnetised and produces its own magnetic field.

磁性是由电荷运动产生的一种物理现象。在铁、钴、镍等材料中,电子的排列形成磁畴——即磁场方向一致、极其微小的区域。当这些磁畴排列整齐时,材料就被磁化并产生自身的磁场。

Every magnet has two poles: north (N) and south (S). Like poles repel, unlike poles attract. This simple rule enables magnetic storage because data bits can be represented by the direction of a magnetised region on a disc or tape.

每个磁体都有两个磁极:北极(N)和南极(S)。同极相斥,异极相吸。这个简单的规律使磁性存储成为可能,因为数据位可以通过磁盘或磁带上磁化区域的方向来表示。

Interaction Result
North + North Repel (push apart)
South + South Repel (push apart)
North + South Attract (pull together)

2. Electromagnetism Fundamentals | 电磁学基础

An electric current flowing through a wire generates a magnetic field around the wire. This is called electromagnetism. The field strength increases with the current and can be concentrated by winding the wire into a coil, forming a solenoid. If a soft iron core is placed inside the coil, the field becomes much stronger — this device is called an electromagnet.

电流流过导线时,会在导线周围产生磁场,这被称为电磁学。磁场强度随电流增大而增强,并且可以通过将导线绕成线圈(即螺线管)来集中磁场。如果将软铁芯放入线圈内部,磁场会显著增强——这种装置称为电磁铁。

Unlike permanent magnets, electromagnets can be switched on and off. This property is used in the read/write heads of hard disks and in relays that control electrical circuits in older computer systems.

与永磁体不同,电磁铁可以通电和断电。这一特性被用于硬盘的读写磁头,以及老式计算机系统中控制电路的继电器。

Field strength ∝ number of turns × current (I)

The direction of the magnetic field depends on the direction of the current. Reversing the current reverses the magnetic poles — this is exactly how a write head changes the orientation of magnetic bits on a disc.

磁场的方向取决于电流的方向。反转电流方向就会反转磁极——这正是写磁头改变磁盘上磁性位方向的方法。


3. Magnetic Storage Basics | 磁性存储基础

Magnetic storage devices store data by magnetising tiny regions of a magnetic medium. Each region is a bit: one magnetisation direction represents a 0, and the opposite direction represents a 1. Because the magnetised regions remain stable without power, magnetic storage is non-volatile.

磁性存储设备通过磁化磁性介质上的微小区域来存储数据。每个区域是一个位(bit):一个磁化方向表示0,相反的方向表示1。由于磁化区域在断电后仍保持稳定,磁性存储是非易失性的。

Common magnetic storage devices include:

常见的磁性存储设备包括:


4. Hard Disk Drives (HDD) | 硬盘驱动器(HDD)

A hard disk drive consists of one or more rigid platters coated with a magnetic material. The platters spin at high speed, typically 5400 or 7200 revolutions per minute (RPM). A read/write head floats just above the surface of each platter, moving radially to access different tracks.

硬盘驱动器由一个或多个覆盖磁性材料的刚性盘片组成。盘片高速旋转,通常为每分钟 5400 或 7200 转(RPM)。一个读写磁头悬浮在每个盘片表面上方极近处,径向移动以访问不同磁道。

Data is organised as follows:

数据的组织方式如下:

Writing data: The write head generates a strong magnetic field, which flips the magnetisation direction of tiny regions on the platter. A current in one direction sets a bit to 1; the opposite current sets it to 0.

写入数据:写磁头产生强磁场,使盘片上微小区域的磁化方向翻转。一个方向的电流将位设为 1;相反方向的电流将其设为 0。

Reading data: The read head uses a magnetoresistive sensor. As the platter spins, the magnetised regions pass under the sensor, changing its electrical resistance. These resistance changes are converted into binary signals.

读取数据:读磁头使用磁阻传感器。当盘片旋转时,磁化区域从传感器下方经过,改变其电阻。这些电阻变化被转换为二进制信号。


5. Magnetic Tapes | 磁带

Magnetic tape is a thin strip of plastic coated with a magnetic oxide layer. Data is stored sequentially along the length of the tape. Tape drives use serial access: to reach data at the end of the tape, the drive must wind through all preceding data.

磁带是一种涂有磁性氧化层的薄塑料带。数据沿磁带长度顺序存储。磁带机使用串行访问:要读取磁带末尾的数据,驱动器必须卷过前面所有数据。

Tapes are much slower than hard disks but offer very high capacity at low cost per gigabyte. They are widely used for disaster recovery backups and long-term archiving because they are robust and portable.

磁带比硬盘慢得多,但每 GB 成本低且容量极高。它们因坚固耐用且便于携带,被广泛用于灾难恢复备份和长期归档。

Feature HDD Magnetic Tape
Access type Direct (random) access Serial (sequential) access
Speed Fast Slow
Cost per GB Moderate Very low

广告 / Sponsored

6. Electromagnetic Induction | 电磁感应

Electromagnetic induction is the process by which a changing magnetic field produces an electric current in a conductor. This principle was discovered by Michael Faraday and is described by the simple equation:

电磁感应是变化的磁场在导体中产生电流的过程。这一原理由迈克尔·法拉第发现,可用简单的方程描述:

induced voltage = rate of change of magnetic flux

感应电压 = 磁通量变化率

In computing, induction is used in:

在计算机领域,感应被用于:

For an IGCSE exam question, remember that a voltage is induced only while the magnetic field is changing. A steady field produces no induction.

对于 IGCSE 考试问题,请记住:只有在磁场变化时才会感应出电压。稳定的磁场不会产生感应。


7. Electromagnets in Computer Peripherals | 计算机外设中的电磁铁

Electromagnets appear in many devices connected to or inside a computer. Understanding their role helps explain how mechanical actions are controlled electronically.

电磁铁出现在许多与计算机连接或位于计算机内部的设备中。理解它们的作用有助于解释电子控制机械动作的原理。

Speakers and headphones: An audio signal is an alternating current that flows through a coil attached to a speaker cone. The coil sits in a magnetic field created by a permanent magnet. The varying current causes the coil to vibrate, producing sound waves corresponding to the digital audio data.

扬声器和耳机:音频信号是流过附在扬声器纸盆上线圈的交流电。线圈位于永磁体产生的磁场中。变化的电流使线圈振动,产生与数字音频数据对应的声波。

Relays: A relay is an electrically operated switch. A small current from a computer's output port energises an electromagnet, which pulls a metal contact to close a separate, higher-power circuit. This isolates the computer from dangerous voltages.

继电器:继电器是一种电控开关。来自计算机输出接口的小电流使电磁铁通电,吸合金属触点,从而接通另一个独立的高功率电路。这样就将计算机与危险电压隔离开来。


8. Magnetic Sensors in Computing | 计算中的磁传感器

Magnetic sensors convert magnetic field changes into electrical signals. They are used in several important computing applications:

磁传感器将磁场变化转换为电信号。它们在几个重要的计算应用中使用:

The Hall effect is a key principle: when a current-carrying conductor is placed in a magnetic field, a voltage develops perpendicular to both the current and the field. This voltage is proportional to the field strength.

霍尔效应是一个关键原理:当载流导体置于磁场中时,在垂直于电流和磁场的方向上会产生电压。该电压与磁场强度成正比。


9. Advantages and Limitations of Magnetic Storage | 磁性存储的优势与局限

Magnetic storage remains relevant despite the rise of flash memory. Each storage type has trade-offs that a computer scientist must consider.

尽管闪存兴起,磁性存储仍然具有现实意义。每种存储类型都有计算机科学家必须考虑的权衡。

Advantages Disadvantages
High capacity at low cost Moving parts → mechanical failure risk
Non-volatile (data survives power loss) Slower than solid-state drives (SSDs)
Proven reliability over decades Vulnerable to strong magnetic fields

Strong magnets can erase or corrupt data on magnetic media, which is why you should never place a magnet near a hard drive or tape cartridge.

强磁体可以擦除或损坏磁性介质上的数据,这就是为什么绝不应将磁铁放在硬盘或磁带盒附近。


10. Exam Tips and Common Questions | 考试提示与常见问题

Edexcel IGCSE Computer Science examinations often ask students to explain how data is written to and read from a magnetic device. Here are the key points to memorise:

爱德思 IGCSE 计算机科学考试经常要求学生解释数据如何写入和读取磁性设备。以下是需要记忆的关键要点:

A sample question might be: "A hard disk has 4 platters, each with 2 surfaces. Each surface has 1024 tracks and each track has 512 sectors. Calculate the total number of sectors."

一个示例问题可能是:"一块硬盘有 4 个盘片,每个盘片有 2 个面。每个面有 1024 个磁道,每个磁道有 512 个扇区。计算扇区总数。"

Total sectors = 4 × 2 × 1024 × 512 = 4,194,304 sectors

扇区总数 = 4 × 2 × 1024 × 512 = 4,194,304 个扇区

Always show your working step by step in calculations, and define every term you use when answering explanation questions.

在计算题中始终逐步展示解题过程,并在回答解释类问题时定义你所使用的每个术语。


Published by TutorHao | Computer Science Revision Series | aleveler.com

广告 / Sponsored
原版培生爱德思考试教材IGCSE计算机科学(含电子书) Pearson Edexcel International G…
计算机 备考教辅 · 正版现货 · 与本文内容相关
查看详情 / View on Taobao参考价 ¥398.0

更多咨询请联系16621398022(同微信)

备考资讯每日更新,关注不错过
考纲变化 · 科目分析 · 学习方法
扫码关注公众号 tutorhao
在微信里长按二维码识别关注
或截图后用「扫一扫 → 相册」选择本图
公众号:tutorhao