from_nF function
Requirements.Units.Conversions.from_nF
ยท source
Convert from nanofarad to farad
Extends Modelica.Units.Icons.Conversion
Convert from nanofarad to farad: F := (1/1000000000)*nF. The input nF is the value in nanofarad (type NonSI.Capacitance_nF), the output F the value in farad (type Modelica.Units.SI.Capacitance). The inverse is to_nF.
The conversion is a multiplication by a constant factor, without offset, so it converts differences and rates alike; it is exact up to floating-point rounding and has no limits on the input. The function is inlined. A check model uses it to write a value of a requirement in the unit in which the requirement states it, from_nF(<value as written>), so that the model reads like the statement; see Conversions. Examples.Elementary.Units.Conversions asserts its factor and the round trip to_nF(from_nF(7)).
Copyright © 2026 Model Based Innovation LLC. All rights reserved.
Inputs
| Name | Type | Description |
|---|---|---|
nF input | NonSI.Capacitance_nF | Value in nanofarad |
Outputs
| Name | Type | Description |
|---|---|---|
F output | SI.Capacitance | Value in farad |