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:
dictA 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.SingleFluidStateThis
ConsSubsetStatestores 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.ConsStateA generic
ConsStatefor 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
phaseas an instance ofPhaseQWarning
This does not return the first variable of the state, i.e.
- Parameters
phase (
Phases) – APhasesinstance identifying the requested phase partition of the state- Returns
A
Qinstance 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
phasewith the provided values- Parameters
phase (
Phases) – APhasesinstance identifying the phase partition of the state for which the values need to be setvalues (
SingleFluidState) – The corresponding values to update the state with