codes/matlab/set_model_inputs.m


%
% (c) Copyright 2008, SimLab, All Rights Reserved.
% Joint Research Center of the European Commission
% This file is subject to the SimLab License
% You will find a copy of the license at:
% http://simlab.jrc.it/licenses
%

% =
gsaBegin
% distrib tests
addFacNorm('pressure',0,1,0.05,0.95,'Pascal')
addFacConst('temperature',300,'Kelvin')
addFacBeta('humidity',1,1,0.05,0.95,'g/m^3')

% file save
saveFactorCfg('InputConfiguration.fac')

gsaEnd

gsaBegin

loadFactorCfg('InputConfiguration.fac')

getFactorNames
 
% getValues test
getNumFactors

getFactorType('pressure',100)

getFactorNote('temperature',100)

getFactorParams('humidity',100)

% Remove Test
delFactor('humidity')
getNumFactors

addFacWeib('speed',4,5,6,0.017,'m/s')

getNumFactors

getFactorNames

% modiFy Test
modFactor('temperature','uniform','temperature','Kelvin',[290 330 1])

getFactorNames

delAllFactors
%

gsaEnd