Skip to content
This repository has been archived by the owner on Jun 17, 2020. It is now read-only.

Commit

Permalink
Fixed molar flow separation spec in Compound Separator
Browse files Browse the repository at this point in the history
  • Loading branch information
DanWBR committed Nov 10, 2017
1 parent 2da89e4 commit a89eea9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DWSIM.UnitOperations/Unit Operations/ComponentSeparator.vb
Original file line number Diff line number Diff line change
Expand Up @@ -243,9 +243,9 @@ Namespace UnitOperations
Case SeparationSpec.PercentInletMolarFlow
Dim mf As Double = instr.Phases(0).Compounds(cs.ComponentID).MolarFlow.GetValueOrDefault
If mf <> 0.0# Then
.MassFlow = cs.SpecValue / 100 * mf
.MolarFlow = cs.SpecValue / 100 * mf
Else
.MassFlow = 0.0#
.MolarFlow = 0.0#
End If
.MassFlow = .MolarFlow * .ConstantProperties.Molar_Weight / 1000
End Select
Expand Down

0 comments on commit a89eea9

Please sign in to comment.