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

Mixer doesn't record the demand of all the input commodities. #270

Closed robfairh closed 5 years ago

robfairh commented 5 years ago

I am running the following input file:

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

This input has two mixers: frmixer and moxmixer.

<facility>
    <name>frmixer</name>
    <config>
        <Mixer>
            <in_streams>
                <stream>
                    <info>
                        <mixing_ratio>0.071</mixing_ratio>
                        <buf_size>1.3e4</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.819</mixing_ratio>
                        <buf_size>1.5e5</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.110</mixing_ratio>
                      <buf_size>5e4</buf_size>
                    </info>
                    <commodities>
                      <item>
                        <commodity>enrichmentwaste</commodity>
                        <pref>2.0</pref>
                      </item>
                      <item>
                        <commodity>sourceout</commodity>
                        <pref>1.0</pref>
                      </item>
                    </commodities>
                </stream>
            </in_streams>
            <out_commod>frmixerout</out_commod>
            <out_buf_size>1e8</out_buf_size>
            <throughput>1e10</throughput>
        </Mixer>
    </config>
</facility>

<facility>
    <name>moxmixer</name>
    <config>
        <Mixer>
            <in_streams>
                <stream>
                    <info>
                        <mixing_ratio>0.0911</mixing_ratio>
                        <buf_size>8e3</buf_size>
                    </info>
                    <commodities>
                        <item>
                            <commodity>lwrpu</commodity>
                            <pref>1.0</pref>
                        </item>
                        <item>
                            <commodity>frpu</commodity>
                            <pref>1.0</pref>
                        </item>
                        <item>
                            <commodity>moxpu</commodity>
                            <pref>1.0</pref>
                        </item>
                    </commodities>
                </stream>
                <stream>
                    <info>
                        <mixing_ratio>0.9089</mixing_ratio>
                        <buf_size>8e4</buf_size>
                    </info>
                    <commodities>
                        <item>
                            <commodity>lwru</commodity>
                            <pref>1.0</pref>
                        </item>
                        <item>
                            <commodity>fru</commodity>
                            <pref>1.0</pref>
                        </item>
                        <item>
                            <commodity>moxu</commodity>
                            <pref>1.0</pref>
                        </item>
                    </commodities>
                </stream>
            </in_streams>
            <out_commod>moxmixerout</out_commod>
            <out_buf_size>1e9</out_buf_size>
            <throughput>1e10</throughput>
        </Mixer>
    </config>
</facility>

Cycamore records only the demand of frpu:

image

At the moment cycamore records the demand of the input with the highest preference. The issue can be closed when cycamore records the demand for all the inputs.

robfairh commented 5 years ago

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