Skip to content

Add gauge pressure, cubic meter per second, and fluence units, #1666

Open
dadge wants to merge 3 commits into
angularsen:masterfrom
iterorganization:master
Open

Add gauge pressure, cubic meter per second, and fluence units, #1666
dadge wants to merge 3 commits into
angularsen:masterfrom
iterorganization:master

Conversation

@dadge
Copy link
Copy Markdown

@dadge dadge commented May 19, 2026

This pull request introduces support for the new physical quantity "Fluence" (measured in neutrons per square centimeter) to UnitsNet, along with enhancements to Power and Pressure units. It adds new gauge pressure units (e.g., bar(g), Pa(g)) and extends the Power quantity with PascalCubicMeterPerSecond and its metric prefixes. The changes include new unit definitions, code generation, and updates to enums and project files.

New Quantity and Units

  • Added the new quantity Fluence with its base unit NeutronPerSquareCentimeter, including its JSON definition, generated code, and nanoFramework project and nuspec files. [1] [2] [3] [4] [5] [6]

Power Unit Extensions

  • Added PascalCubicMeterPerSecond (with metric prefixes) to Power units, including JSON definition, enum values, and generated property accessors in the Power quantity. [1] [2] [3] [4] [5] [6] [7] [8]

Pressure Unit Extensions

  • Added gauge pressure units PascalG (Pa(g)) and BarG (bar(g)), with their conversion logic, localizations, and enum values. [1] [2] [3]

These changes expand UnitsNet's coverage for nuclear physics and engineering use cases, providing new units and quantities with full support in the codebase. The new units are useful for ITER organization, the international research project to create the first nuclear fusion reactor ( https://www.iter.org/)

dadge added 3 commits May 19, 2026 14:15
The usage is deprecated but still prevails in industry. At ITER Organization, we need those unit for business use cases.
 At ITER Organization, we need those unit for business use cases.
 At ITER Organization, we need those unit for business use cases.
In nuclear reactor physics, fluence is the time-integrated neutron flux.
It is commonly expressed in neutrons per square centimeter (n/cm²).
For example, the fast neutron fluence with energy greater than one mega-electronvolt (velocity greater than 13,830 km/s) received by the wall of a reactor vessel at end-of-life can reach 6 × 10¹⁹ n/cm² (equivalent to one mole per square meter).
@dadge
Copy link
Copy Markdown
Author

dadge commented May 19, 2026

Hey @angularsen ! Sorry to bother, but the Azure Pipelines is crashing and I don't think it's is related t any of my changes but I may be wrong ? in Any case the error message is not helpful to identify the issue (and I cannot re run it).

image

Thank you !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant