Prev: Matlab runtime compilation error
Next: Locating indices of more than one of the maximum values of an array
From: a black on 17 Jul 2010 13:43 i did what u suggested and the model run!!!! thank you very much.I ve got one more question. can i add a new domain in an existing model of simulink for example the pump model is in the hydraulic domain can i add the thermal domain in the existing pump model and have 4 nodes 2 for hydraulic and another 2 for the thermal ? or should i create a new model? and if i cant can i inherit the properties of the pump model (cause i have seen in a tutorial tha i can inherit) i am just asking because they have the source code locked... thanx for the valuable advices ...
From: Arnaud Miege on 20 Jul 2010 06:42 "a black" <earedil88(a)gmail.com> wrote in message <i1sq3a$elh$1(a)fred.mathworks.com>... > i did what u suggested and the model run!!!! thank you very much.I ve got one more question. can i add a new domain in an existing model of simulink for example the pump model is in the hydraulic domain can i add the thermal domain in the existing pump model and have 4 nodes 2 for hydraulic and another 2 for the thermal ? or should i create a new model? and if i cant can i inherit the properties of the pump model (cause i have seen in a tutorial tha i can inherit) i am just asking because they have the source code locked... > > thanx for the valuable advices ... Most of the Simscape foundation blocks ship with the Simscape source code, so you can create your own version of these. However, this isn't the case for the add-on products such as SimHydraulics, so if you want to create your own pump model, then you'd have to start from scratch (having said that the equations are provided in the documentation). Either way, with regards to thermal effects, there are two scenarios: * you create a *new* physical domain where each port has both thermal and hydraulic characteristics, with 2 through (mass flow rate and heat flow) and 2 across variables (pressure and temperature), in which case you need re-create a new library of all the blocks you need in that domain. * you create a new block, with ports from different *existing* domains, e.g. 2 hydraulic and 2 thermal ports. This doesn't require the definition of a new domain, and you may be able to re-use some of the existing source code from the Simscape foundation library. You would have to couple the thermal and hydraulic variables somehow, but the hydraulic ports would only account for flow/pressure (and not thermal) characteristics and the thermal ports would only account for thermal (and not hydraulic flow) effects. Have a look at the rotational or translational electro-mechanical converter for examples of blocks which spans multiple domains. These are two completely different things. HTH, Arnaud
From: a black on 23 Jul 2010 04:52 if i follow the first scenario should i create a new domain or i can just follow the pneumatic domain and programm what i ll need for the simulation of the cycle? because i will use pressure temperature and mass flow and heat flow and as far as i know pneumatic uses the same variables ?
From: Arnaud Miege on 9 Aug 2010 11:41 "a black" <earedil88(a)gmail.com> wrote in message <i2bl7m$jas$1(a)fred.mathworks.com>... > if i follow the first scenario should i create a new domain or i can just follow the pneumatic domain and programm what i ll need for the simulation of the cycle? because i will use pressure temperature and mass flow and heat flow and as far as i know pneumatic uses the same variables ? I think you will need to create a new domain, because although the through and across variables are the same, the domain parameters (i.e. how you approximate the fluid properties), will be different between (ideal) gases and fluids. HTH, Arnaud
First
|
Prev
|
Pages: 1 2 Prev: Matlab runtime compilation error Next: Locating indices of more than one of the maximum values of an array |