# Solenoid

{{#invoke:Hatnote|hatnote}}

An illustration of a solenoid
Magnetic field created by a seven-loop solenoid (cross-sectional view) described using field lines.

A solenoid (from the French solénoïde, derived in turn from the Greek solen "pipe, channel" + combining form of Greek eidos "form, shape"[1]) is a coil wound into a tightly packed helix. The term was invented by French physicist André-Marie Ampère to designate a helical coil.[2]

In physics, the term refers specifically to a long, thin loop of wire, often wrapped around a metallic core, which produces a uniform magnetic field in a volume of space (where some experiment might be carried out) when an electric current is passed through it. A solenoid is a type of electromagnet when the purpose is to generate a controlled magnetic field. If the purpose of the solenoid is instead to impede changes in the electric current, a solenoid can be more specifically classified as an inductor rather than an electromagnet. Not all electromagnets and inductors are solenoids; for example, the first electromagnet, invented in 1824, had a horseshoe rather than a cylindrical solenoid shape.

In engineering, the term may also refer to a variety of transducer devices that convert energy into linear motion. The term is also often used to refer to a solenoid valve, which is an integrated device containing an electromechanical solenoid which actuates either a pneumatic or hydraulic valve, or a solenoid switch, which is a specific type of relay that internally uses an electromechanical solenoid to operate an electrical switch; for example, an automobile starter solenoid, or a linear solenoid, which is an electromechanical solenoid.

## Infinite continuous solenoids

An infinite solenoid is a solenoid with infinite length but finite diameter. Continuous means that the solenoid is not formed by discrete coils but by a sheet of conductive material.

### Inside

Figure 1: An infinite solenoid with 3 arbitrary Ampèrian loops labeled a, b and c. Integrating over path c demonstrates that the magnetic field inside the solenoid must be radially uniform.

In short: the magnetic field inside an infinitely long solenoid is homogeneous and its strength does not depend on the distance from the axis, nor on the solenoid cross-sectional area.

This is a derivation of the magnetic flux density around a solenoid that is long enough so that fringe effects can be ignored. In Figure 1, we immediately know that the flux density vector points in the positive z direction inside the solenoid, and in the negative z direction outside the solenoid. We see this by applying the right hand grip rule for the field around a wire. If we wrap our right hand around a wire with the thumb pointing in the direction of the current, the curl of the fingers shows how the field behaves. Since we are dealing with a long solenoid, all of the components of the magnetic field not pointing upwards cancel out by symmetry. Outside, a similar cancellation occurs, and the field is only pointing downwards.

Now consider the imaginary loop c that is located inside the solenoid. By Ampère's law, we know that the line integral of B (the magnetic flux density vector) around this loop is zero, since it encloses no electrical currents (it can be also assumed that the circuital electric field passing through the loop is constant under such conditions: a constant or constantly changing current through the solenoid). We have shown above that the field is pointing upwards inside the solenoid, so the horizontal portions of loop c do not contribute anything to the integral. Thus the integral of the up side 1 is equal to the integral of the down side 2. Since we can arbitrarily change the dimensions of the loop and get the same result, the only physical explanation is that the integrands are actually equal, that is, the magnetic field inside the solenoid is radially uniform. Note, though, that nothing prohibits it from varying longitudinally, which in fact it does.

### Outside

A similar argument can be applied to the loop a to conclude that the field outside the solenoid is radially uniform or constant. This last result, which holds strictly true only near the centre of the solenoid where the field lines are parallel to its length, is important in as much as it shows that the flux density outside is practically zero since the radii of the field outside the solenoid will tend to infinity.

An intuitive argument can also be used to show that the flux density outside the solenoid is actually zero. Magnetic field lines only exist as loops, they cannot diverge from or converge to a point like electric field lines can (see Gauss's law for magnetism). The magnetic field lines follow the longitudinal path of the solenoid inside, so they must go in the opposite direction outside of the solenoid so that the lines can form a loop. However, the volume outside the solenoid is much greater than the volume inside, so the density of magnetic field lines outside is greatly reduced. Now recall that the field outside is constant. In order for the total number of field lines to be conserved, the field outside must go to zero as the solenoid gets longer.

Of course, if the solenoid is constructed as a wire spiral (as often done in practice), then it emanates an outside field the same way as a single wire, due to the current flowing overall down the length of the solenoid.

### Quantitative description

Now we can consider the imaginary loop b. Take the line integral of B (the magnetic flux density vector) around the loop of height l. The horizontal components vanish, and the field outside is practically zero, so Ampère's Law gives us

${\displaystyle Bl=\mu _{0}NI,}$

where ${\displaystyle \mu _{0}}$ is the magnetic constant, ${\displaystyle N}$ the number of turns, and ${\displaystyle I}$ the current. From this we get

${\displaystyle B=\mu _{0}{\frac {NI}{l}}.}$

This equation is valid for a solenoid in free space, which means the permeability of the magnetic path is the same as permeability of free space, μ0.

If the solenoid is immersed in a material with relative permeability μr, then the field is increased by that amount:

${\displaystyle B=\mu _{0}\mu _{\mathrm {r} }{\frac {NI}{l}}.}$

In most solenoids, the solenoid is not immersed in a higher permeability material, but rather some portion of the space around the solenoid has the higher permeability material and some is just air (which behaves much like free space). In that scenario, the full effect of the high permeability material is not seen, but there will be an effective (or apparent) permeability μeff such that 1 ≤ μeff ≤ μr.

The inclusion of a ferromagnetic core, such as iron, increases the magnitude of the magnetic flux density in the solenoid and raises the effective permeability of the magnetic path. This is expressed by the formula

${\displaystyle B=\mu _{0}\mu _{\mathrm {eff} }{\frac {NI}{l}}=\mu {\frac {NI}{l}},}$

where μeff is the effective or apparent permeability of the core. The effective permeability is a function of the geometric properties of the core and its relative permeability. The terms relative permeability (a property of just the material) and effective permeability (a property of the whole structure) are often confused; they can differ by many orders of magnitude.

For an open magnetic structure, the relationship between the effective permeability and relative permeability is given as follows:

### Pneumatic solenoid valves

A pneumatic solenoid valve is a switch for routing air to any pneumatic device, usually an actuator, allowing a relatively small signal to control a large device. It is also the interface between electronic controllers and pneumatic systems.{{ safesubst:#invoke:Unsubst||date=__DATE__ |\$B= {{#invoke:Category handler|main}}{{#invoke:Category handler|main}}[citation needed] }}

### Hydraulic solenoid valves

Hydraulic solenoid valves are in general similar to pneumatic solenoid valves except that they control the flow of hydraulic fluid (oil), often at around 3000 psi (210 bar, 21 MPa, 21 MN/m²). Hydraulic machinery uses solenoids to control the flow of oil to rams or actuators. Solenoid-controlled valves are often used in irrigation systems, where a relatively weak solenoid opens and closes a small pilot valve, which in turn activates the main valve by applying fluid pressure to a piston or diaphragm that is mechanically coupled to the main valve. Solenoids are also in everyday household items such as washing machines to control the flow and amount of water into the drum.

Transmission solenoids control fluid flow through an automatic transmission and are typically installed in the transmission valve body.

### Automobile starter solenoid

{{#invoke:main|main}}

In a car or truck, the starter solenoid is part of an automobile starting system. The starter solenoid receives a large electric current from the car battery and a small electric current from the ignition switch. When the ignition switch is turned on (i.e. when the key is turned to start the car), the small electric current forces the starter solenoid to close a pair of heavy contacts, thus relaying the large electric current to the starter motor.

Starter solenoids can also be built into the starter itself, often visible on the outside of the starter. If a starter solenoid receives insufficient power from the battery, it will fail to start the motor, and may produce a rapid 'clicking' or 'clacking' sound. This can be caused by a low or dead battery, by corroded or loose connections in the cable, or by a broken or damaged positive (red) cable from the battery. Any of these will result in some power to the solenoid, but not enough to hold the heavy contacts closed, so the starter motor itself never spins, and the engine doesn't start.