terrapower / armi

An open-source nuclear reactor analysis automation framework that helps design teams increase efficiency and quality
https://terrapower.github.io/armi/
Apache License 2.0
233 stars 89 forks source link

Improve `HexBlock.getFlowArea()` calculation #1988

Open john-science opened 3 weeks ago

john-science commented 3 weeks ago

Right now, the HexBlock.getFlowArea() calculation only calculates the area based on Flags.COOLANT, but @clstocking reports it could also be dependent on Flags.INTERDUCTCOOLANT.

From the current calc:

https://github.com/terrapower/armi/blob/6fcc48196842f3580496e152a6b2862b1ea75a91/armi/reactor/blocks.py#L2594

To something more like:

area = self.getComponent(Flags.COOLANT, exact=True).getArea()
for c in self.getComponents(Flags.INTERDUCTCOOLANT, exact=True):
    area += c.getArea()

return area