FCSys.Conditions.Adapters.MSL

Adapters to the Modelica Standard Library

Information

Extends from Modelica.Icons.Package (Icon for standard packages).

Package Content

NameDescription
FCSys.Conditions.Adapters.MSL.Anode Anode Adapter between Modelica and the boundary connector of a Cell, Region, or Subregion
FCSys.Conditions.Adapters.MSL.Cathode Cathode Adapter between Modelica and the boundary connector of a Cell, Region, or Subregion
FCSys.Conditions.Adapters.MSL.Conductor Conductor Adapter for electrical and thermal conduction between Modelica and FCSys
FCSys.Conditions.Adapters.MSL.Electronic Electronic Adapter for e- between Modelica and FCSys
FCSys.Conditions.Adapters.MSL.Phases Phases Adapters for material phases
FCSys.Conditions.Adapters.MSL.Domains Domains Adapters for physical domains
FCSys.Conditions.Adapters.MSL.Junctions Junctions Modelica junctions between pure substances and their mixtures
FCSys.Conditions.Adapters.MSL.Media Media Modelica.Media models to interface with the cell

FCSys.Conditions.Adapters.MSL.Anode FCSys.Conditions.Adapters.MSL.Anode

Adapter between Modelica and the boundary connector of a Cell, Region, or Subregion FCSys.Conditions.Adapters.MSL.Anode

Information

Extends from FCSys.Icons.Names.Top4.

Parameters

TypeNameDefaultDescription
Material properties
replaceable package GasMediumMedia.AnodeGasMedium model for the gas
replaceable package LiquidMediumModelica.Media.Water.Constan…Medium model for the liquid

Connectors

TypeNameDescription
BoundaryBusboundaryMulti-species connector for translational momentum and heat
FluidPort_bgasPortModelica fluid port for the gas
NegativePinpinModelica electrical pin
HeatPort_bheatPortModelica heat port
FluidPort_bliquidPortModelica fluid port for the liquid
Material properties
replaceable package GasMediumMedium model for the gas
replaceable package LiquidMediumMedium model for the liquid

Modelica definition

model Anode 
  "Adapter between Modelica and the boundary connector of a Cell, Region, or Subregion"
  extends FCSys.Icons.Names.Top4;

  replaceable package GasMedium = Media.AnodeGas constrainedby 
    Modelica.Media.Interfaces.PartialMedium "Medium model for the gas";
  replaceable package LiquidMedium = Modelica.Media.Water.ConstantPropertyLiquidWater
    constrainedby Modelica.Media.Interfaces.PartialMedium 
    "Medium model for the liquid";

  Connectors.BoundaryBus boundary 
    "Multi-species connector for translational momentum and heat";
  Modelica.Fluid.Interfaces.FluidPort_b gasPort(redeclare final package Medium
      = GasMedium) "Modelica fluid port for the gas";
  Modelica.Electrical.Analog.Interfaces.NegativePin pin 
    "Modelica electrical pin";
  Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_b heatPort 
    "Modelica heat port";
  Modelica.Fluid.Interfaces.FluidPort_b liquidPort(redeclare final package
      Medium = LiquidMedium) "Modelica fluid port for the liquid";
  Phases.AnodeGas gas(redeclare final package Medium = GasMedium) 
    "Gas subadapter";
  Phases.Graphite graphite('inclC+'=true, 'incle-'=true) "Graphite subadapter";

  Phases.Liquid liquid(redeclare final package Medium = LiquidMedium) 
    "Liquid subadapter";

equation 
  connect(gas.boundary, boundary.gas);
  connect(gasPort, gas.fluidPort);
  connect(gas.heatPort, heatPort);

  connect(graphite.boundary, boundary.graphite);

  connect(graphite.pin, pin);
  connect(graphite.heatPort, heatPort);
  connect(liquid.boundary, boundary.liquid);

  connect(liquidPort, liquid.fluidPort);
  connect(liquid.heatPort, heatPort);

end Anode;

FCSys.Conditions.Adapters.MSL.Cathode FCSys.Conditions.Adapters.MSL.Cathode

Adapter between Modelica and the boundary connector of a Cell, Region, or Subregion FCSys.Conditions.Adapters.MSL.Cathode

Information

Extends from FCSys.Icons.Names.Top4.

Parameters

TypeNameDefaultDescription
Material properties
replaceable package GasMediumMedia.CathodeGasMedium model for the gas
replaceable package LiquidMediumModelica.Media.Water.Constan…Medium model for the liquid

Connectors

TypeNameDescription
BoundaryBusboundaryMulti-species connector for translational momentum and heat
FluidPort_bgasPortModelica fluid port for the gas
NegativePinpinModelica electrical pin
HeatPort_bheatPortModelica heat port
FluidPort_bliquidPortModelica fluid port for the liquid
Material properties
replaceable package GasMediumMedium model for the gas
replaceable package LiquidMediumMedium model for the liquid

Modelica definition

model Cathode 
  "Adapter between Modelica and the boundary connector of a Cell, Region, or Subregion"
  extends FCSys.Icons.Names.Top4;

  replaceable package GasMedium = Media.CathodeGas constrainedby 
    Modelica.Media.Interfaces.PartialMedium "Medium model for the gas";
  replaceable package LiquidMedium = Modelica.Media.Water.ConstantPropertyLiquidWater
    constrainedby Modelica.Media.Interfaces.PartialMedium 
    "Medium model for the liquid";

  Connectors.BoundaryBus boundary 
    "Multi-species connector for translational momentum and heat";
  Modelica.Fluid.Interfaces.FluidPort_b gasPort(redeclare final package Medium
      = GasMedium) "Modelica fluid port for the gas";
  Modelica.Electrical.Analog.Interfaces.NegativePin pin 
    "Modelica electrical pin";
  Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_b heatPort 
    "Modelica heat port";
  Modelica.Fluid.Interfaces.FluidPort_b liquidPort(redeclare final package
      Medium = LiquidMedium) "Modelica fluid port for the liquid";

  Phases.CathodeGas gas(redeclare final package Medium = GasMedium) 
    "Gas subadapter";
  Phases.Graphite graphite('inclC+'=true, 'incle-'=true) "Graphite subadapter";
  Phases.Liquid liquid(redeclare final package Medium = LiquidMedium) 
    "Liquid subadapter";

equation 
  connect(gas.boundary, boundary.gas);
  connect(gasPort, gas.fluidPort);
  connect(gas.heatPort, heatPort);
  connect(graphite.boundary, boundary.graphite);

  connect(graphite.pin, pin);
  connect(graphite.heatPort, heatPort);
  connect(liquid.boundary, boundary.liquid);

  connect(liquidPort, liquid.fluidPort);
  connect(liquid.heatPort, heatPort);

end Cathode;

FCSys.Conditions.Adapters.MSL.Conductor FCSys.Conditions.Adapters.MSL.Conductor

Adapter for electrical and thermal conduction between Modelica and FCSys FCSys.Conditions.Adapters.MSL.Conductor

Information

Extends from FCSys.Icons.Names.Top2.

Parameters

TypeNameDefaultDescription
Species
Boolean'inclC+'falseInclude C+
Boolean'incle-'falseInclude e-

Connectors

TypeNameDescription
BoundaryBusboundaryMulti-species connector
NegativePinpinModelica electrical pin
HeatPort_bheatPortModelica heat port

Modelica definition

model Conductor 
  "Adapter for electrical and thermal conduction between Modelica and FCSys"
  extends FCSys.Icons.Names.Top2;

  parameter Boolean 'inclC+'=false "Include C+";
  parameter Boolean 'incle-'=false "Include e-";

  Connectors.BoundaryBus boundary "Multi-species connector";
  Modelica.Electrical.Analog.Interfaces.NegativePin pin if 'incle-' 
    "Modelica electrical pin";
  Phases.Graphite graphite(final 'inclC+'='inclC+', final 'incle-'='incle-') 
    "Graphite subadapter";

  Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_b heatPort if 'inclC+' 
    "Modelica heat port";

equation 
  connect(graphite.boundary, boundary.graphite);

  connect(graphite.pin, pin);

  connect(graphite.heatPort, heatPort);
end Conductor;

FCSys.Conditions.Adapters.MSL.Electronic FCSys.Conditions.Adapters.MSL.Electronic

Adapter for e- between Modelica and FCSys FCSys.Conditions.Adapters.MSL.Electronic

Information

Extends from FCSys.Icons.Names.Top1.

Connectors

TypeNameDescription
BoundaryBusboundaryMulti-species connector
NegativePinpinModelica electrical pin

Modelica definition

model Electronic 
  "Adapter for e- between Modelica and FCSys"
  extends FCSys.Icons.Names.Top1;

  Connectors.BoundaryBus boundary "Multi-species connector";
  Modelica.Electrical.Analog.Interfaces.NegativePin pin 
    "Modelica electrical pin";
  Phases.Graphite graphite(final 'incle-'=true, final 'inclC+'=false) 
    "Graphite subadapter";

equation 
  connect(graphite.boundary, boundary.graphite);

  connect(graphite.pin, pin);

end Electronic;