Buildings.Fluid.BaseClasses.FlowModels.Examples

Collection of models that illustrate model use and test models

Information


This package contains examples for the use of models
that can be found in 
Buildings.Fluid.BaseClasses.FlowModels.

Extends from Buildings.BaseClasses.BaseIconExamples (Icon for Examples packages).

Package Content

NameDescription
TestFlowFunctions Test model for flow functions


Buildings.Fluid.BaseClasses.FlowModels.Examples.TestFlowFunctions

Test model for flow functions

Information


This model test the inverse functions. When translating this model in 
Dymola 7.2, there should be no numerical solution be required to solve
the nonlinear equation system.


Parameters

TypeNameDefaultDescription
Booleanlinearizedfalse 
Realk0.05 

Modelica definition

model TestFlowFunctions "Test model for flow functions"
 Modelica.SIunits.MassFlowRate m_flow;
 Modelica.SIunits.MassFlowRate m1_flow;
 Modelica.SIunits.MassFlowRate m_flow_nominal=2;
 Modelica.SIunits.Time dTime= 1;
 Modelica.SIunits.Pressure dp;
 parameter Boolean linearized=false;
 parameter Real k = 0.05;
equation 
  m_flow = time/dTime * m_flow_nominal;
  m_flow=FlowModels.basicFlowFunction_dp(dp=dp, k=k, m_flow_turbulent=m_flow_nominal*0.3, linearized=linearized);
  dp=FlowModels.basicFlowFunction_m_flow(m_flow=m1_flow, k=k, m_flow_turbulent=m_flow_nominal*0.3, linearized=linearized);
end TestFlowFunctions;

HTML-documentation generated by Dymola Tue Sep 29 08:09:29 2009.