# volume fractions do not sum to 1

**URL:** https://discourse.kitware.com/t/volume-fractions-do-not-sum-to-1/433
**Category:** Pulse Physiology Engine
**Created:** [March 24, 2020, 8:05pm UTC](https://discourse.kitware.com/t/volume-fractions-do-not-sum-to-1/433 "2020-03-24T20:05:16Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![bob.marinier](https://discourse.kitware.com/letter_avatar_proxy/v4/letter/b/7ab992/32.png) [@bob.marinier](https://discourse.kitware.com/u/bob.marinier)
#### Post date: [March 24, 2020, 8:05pm UTC](https://discourse.kitware.com/t/volume-fractions-do-not-sum-to-1/433/1 "2020-03-24T20:05:16Z")

</div>

I’m creating the pulse engine from java using this patient file that comes with Pulse: `build\install\bin\patients\Soldier.json` (I am not yet using states).

When the engine is initializing, I get this fatal error:

```auto
FATAL:Mouth Compartment's volume fractions do not sum up to 1 : 
TODO Handle this Failure : [0(s)] Mouth Compartment's volume fractions do not sum up to 1 
[ERROR] [2020-03-24 15:50:47,836] [main] [PulseEngine] PulseEngine::115::Unable to initialize engine

```

Stepping through the code, it appears that there are 3 `SEGasSubstanceQuantity` objects, but each has a volume fraction of 0.0, so the `totalFraction` ends up being 0.0.

I have set up files in a separate location, so maybe there is some file that I failed to copy over that is necessary?

---

<div class="post-metadata">

### Author: ![bob.marinier](https://discourse.kitware.com/letter_avatar_proxy/v4/letter/b/7ab992/32.png) [@bob.marinier](https://discourse.kitware.com/u/bob.marinier)
#### Post date: [March 24, 2020, 8:25pm UTC](https://discourse.kitware.com/t/volume-fractions-do-not-sum-to-1/433/2 "2020-03-24T20:25:35Z")

</div>

It looks like the issue was that I was missing the `environments` folder, so the fraction of each kind of gas defaulted to 0, which then caused this issue downstream.
