arfc / d3ploy

A collection of Cyclus manager archetypes for demand driven deployment
BSD 3-Clause "New" or "Revised" License
4 stars 11 forks source link

d3ploy fails to record the capacity of mixers deployed with multiple inputs #273

Closed robfairh closed 5 years ago

robfairh commented 5 years ago

d3ploy fails to record the capacity of a mixer deployed when it has multiple inputs for the same comodity.

In the following case, the mixer has two inputs (lwrpu and frpu) for Pu:

https://github.com/robfairh/transition-scenarios/blob/experimental6/input/eg01-eg29/d3ploy-simple2.xml

<facility>
    <name>frmixer</name>
    <config>
        <Mixer>
            <in_streams>
                <stream>
                    <info>
                        <mixing_ratio>0.129</mixing_ratio>
                        <buf_size>3e3</buf_size>
                    </info>
                    <commodities>
                        <item>
                            <commodity>lwrpu</commodity>
                            <pref>1.0</pref>
                        </item>
                        <item>
                            <commodity>frpu</commodity>
                            <pref>1.0</pref>
                        </item>
                    </commodities>
                </stream>
                <stream>
                    <info>
                        <mixing_ratio>0.714</mixing_ratio>
                        <buf_size>4e5</buf_size>
                    </info>
                    <commodities>
                        <item>
                            <commodity>lwru</commodity>
                            <pref>1.0</pref>
                        </item>
                        <item>
                            <commodity>fru</commodity>
                            <pref>1.0</pref>
                        </item>                    
                    </commodities>
                </stream>
                <stream>
                    <info>
                        <mixing_ratio>0.157</mixing_ratio>
                        <buf_size>1e5</buf_size>
                    </info>
                    <commodities>
                        <item>
                            <commodity>sourceout</commodity>
                            <pref>1.0</pref>
                        </item>
                    </commodities>
                </stream>
            </in_streams>
            <out_commod>mixerout</out_commod>
            <out_buf_size>1e10</out_buf_size>
            <throughput>1e7</throughput>
        </Mixer>
    </config>
</facility>

For this input the table timeseriescalc_capacitylwrpu is 0 for all timesteps even though there are multiple mixers deployed.

image

This issue can be closed when d3ploy is able to record the capacity of the mixers deployed.

robfairh commented 5 years ago

When using the feature installed capacity, d3ploy records the capacity of the mixer.

robfairh commented 5 years ago

Solved by https://github.com/cyclus/cycamore/pull/508