Skip to content

Error in pressure_drop dump when using mixed_convection solver #47

@Nino-ndrk

Description

@Nino-ndrk

By enabling pressure_drop in Dump section to get information of the detailed pressure drop data to CSV file, I get an error when mixed_convection is also enabled.
The error seems related to a formatting issue of the pressure drop calculation coming from MixedRegion.
The error traceback is following reported:

  File "path_to_Python_installation\site-packages\dassh\reactor.py", line 1147, in axial_step
    self._calculate_asm_temperatures(self.assemblies[ai], ai,
  File "path_to_Python_installation\site-packages\dassh\reactor.py", line 1248, in _calculate_asm_temperatures
    asm.write(self._options['dump']['files'], gap_temp)
  File "path_to_Python_installation\site-packages\dassh\assembly.py", line 760, in write
    for k in reg._pressure_drop.keys():
AttributeError: 'numpy.float64' object has no attribute 'keys'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions