# Gauss Law for Magnetism

 Flux: Enclosed Current:

Output: `Press calculate`

Formula:`ΦB = B · A`

## Introduction to Gauss Law for Magnetism

In physics, Gauss's law for magnetism is one of the four Maxwell's equations that underpins classical electromagnetism. It relates the distribution of electric charge within a region to the electric field on the boundary of that region. The formula for Gauss's law for magnetism states that the magnetic flux through a surface is proportional to the total enclosed electric current. Here, ΦB represents the magnetic flux, and the enclosedCurrent refers to the total enclosed current through the surface bounded by the loop or closed path. The result is a dimensionless quantity.

## Parameter usage:

• `flux`= magnetic flux through a surface
• `enclosedCurrent`= total enclosed electric current

## Example valid values:

• `flux`= 10
• `enclosedCurrent`= 5

## Output:

• `GaussLawMagnetism`= result based on the Gauss law for magnetism

## Data validation

The magnetic flux value must be non-negative, and the enclosed electric current value must be non-zero.

## Summary

This formula provides a relationship between the magnetic flux through a closed surface and the total enclosed electric current, in accordance with Gauss's law for magnetism.