Example #1
0
        public IParameter CreateConcentrationParameterIn(IFormulaCache formulaCache)
        {
            var parameter = CreateFor(CoreConstants.Parameter.CONCENTRATION, PKSimBuildingBlockType.Simulation);

            parameter.BuildMode    = ParameterBuildMode.Local;
            parameter.Info.Visible = false;
            parameter.Formula      = _formulaFactory.ConcentrationFormulaFor(formulaCache);
            parameter.Dimension    = _dimensionRepository.MolarConcentration;
            return(parameter);
        }
Example #2
0
        public IParameter CreateConcentrationParameter(IFormulaCache formulaCache)
        {
            var concentrationFormula        = _formulaFactory.ConcentrationFormulaFor(formulaCache);
            var molarConcentrationDimension = _dimensionFactory.Dimension(Constants.Dimension.MOLAR_CONCENTRATION);
            var concentrationParameter      = CreateParameter(Constants.Parameters.CONCENTRATION, dimension: molarConcentrationDimension, formula: concentrationFormula)
                                              .WithMode(ParameterBuildMode.Local);

            concentrationParameter.Info.ReadOnly = true;

            return(concentrationParameter);
        }