josie.twofluid package¶
Submodules¶
josie.twofluid.fields module¶
josie.twofluid.scheme module¶
josie.twofluid.state module¶
- class josie.twofluid.state.PhasePair(phase1=None, phase2=None)¶
Bases:
dict
A tuple of objects that are indexable by
Phases
.- property phase1: Any¶
- Return type
Any
- property phase2: Any¶
- Return type
Any
- class josie.twofluid.state.PhaseState(*args, **kwargs)¶
Bases:
josie.state.SubsetState
,josie.fluid.state.SingleFluidState
This
ConsSubsetState
stores two sets of indices, one per phase, and it matches the field names with a regex in order to detect the phase they are member of. This is needed to support out-of-order listing of fields
- class josie.twofluid.state.TwoFluidState(*args, **kwargs)¶
Bases:
josie.fluid.state.ConsState
A generic
ConsState
for a two-phase flow problem. It allows to retrieve individual phase states- get_phase(phase)¶
Returns the part of the state associated to a specified
phase
as an instance ofPhaseQ
Warning
This does not return the first variable of the state, i.e.
- Parameters
phase (
Phases
) – APhases
instance identifying the requested phase partition of the state- Returns
A
Q
instance corresponding to the partition of the system associated to the requested phase- Return type
state
- phase_state: Type[PhaseState]¶
- set_phase(phase, values)¶
Sets the part of the system associated to the specified
phase
with the provided values- Parameters
phase (
Phases
) – APhases
instance identifying the phase partition of the state for which the values need to be setvalues (
SingleFluidState
) – The corresponding values to update the state with