building a model – differential equations | simbiology tutorials for qsp, pbpk, and pk/pd modeling and analysis video -凯发k8网页登录
from the series:
learn how to define differential equations with simbiology® using the model builder app.
in this video tutorial, we will see how to build a model with simbiology, and more particularly, how to define differential equations.
simbiology allows you to define your model as a reaction network from which alternative differential equations are derived automatically. you can build your model programmatically, or using the model builder app that provides a block diagram editor to build your model interactively. you'll find the model builder in your matlab app category.
the diagram you see in the middle is not only a graphical representation of the model, but it's the model itself. this model is composed of two compartments-- target mediated direct disposition model for the pk part, and an indirect response model with inhibition of kin for the pg part.
the pk part is modeled as a set of reactions that describe the processes involved, such as the banding of the direct through receptor, the elimination of direct receptor and complex, the synthesis of receptor, and the transport of the direct between the central and the peripheral compartment.
we define the pd dynamics by writing directly its ode in a so-called rate rule.
so let's see now how to build this kind of model. we will start from scratch by creating a blank model. this newly-created model contains one compartment by default, as every model must contain at least one compartment. a compartment is a well-mixed container that is characterized by its spatial dimension-- in general, its volume.
now that this compartment is selected, you see the property editor populated with the properties of this specific component. so let's rename it central and define its unit.
by default, the volume of a compartment is constant, but it could also change over time. a compartment could also contain other compartments, like this cytoplasm could contain a nucleus.
let's now add the peripheral compartment. to do this, i will drag and drop a compartment from the block library and modify its properties.
now let's add state variables, which are called species in simbiology. species can represent the dynamical states of metabolites, proteins, receptors-- whatever would be included in your model-- and must be defined in unit of concentration, or amount.
so let's drag and drop our four species. drag receptor complex in the central compartment, and drag in the peripheral compartment. species must have unique names within one compartment, but they can share the same name as another species from another compartment.
we can select multiple species by pressing shift to change a common property at the same time, such as the unit. we can also set the binary condition to true. in that case, species would not be modified by the reactions it participates in. they can still be modified by events, rules, or doses.
the constant property, or constant value property, could be set to true, as well. and in that case, the species can vary during the simulation.
let's now add reactions. reactions describe processes between reactants and products, like a transformation, transport, and binding.
to add a reaction, the first option is to drag and drop a reaction block. now you can press control and drag a line from the species to the reaction to define it as a reactant. as you can see, the reaction scheme was automatically updated in the property editor.
likewise, you can drag a line from the reaction to a species to define it as a product of that reaction. by default, the reaction will have a mass action of kinetics, and its parameter will be created automatically. you can change the default behavior in the preferences. for instance, i can decide not to create parameters automatically.
reactions can be reversible. here, we then need to add a new dissociation constant. once the kinetic flow and parameters are defined, simbiology derived direction rate automatically. you can also set the kinetic flow to a noun and write your own custom reaction rate.
the second option to create a reaction is to drag a line from one species to another one, and simbiology will create a reaction in-between.
let's now define this reaction as reversible and define its parameters. reactions don't necessarily need both reactants and products. they could only have a product in the case of a synthesis, or only a reactant in case of elimination.
let's implement this for the receptor. if we add a reaction and make it a receptor, you see that the reaction scheme now contains null, which is a key word in simbiology.
also, you can edit direction scheme directly in the property editor, and simbiology will update the diagram accordingly by adding a line. a species could also be both reactant and product. in this case, its concentration direct mix would not be affected by the reaction, and its link to the reaction would be shown on a diagram using a dashed line. this is useful for the case of enzymatic reactions.
so far, we have created parameters directly while we defined reactions. we can also define parameters, or any other components, using the lists in the model browser. we will use the list of parameters to create the parameters we need for indirect response, kin, imax, ic50, and kout.
we will also define the response r as a parameter because r is dimensionless. and remember that the species must be a concentration or an amount. and this is fine because a parameter can be non-constant, and its dynamics can be defined by a rate rule. a rate rule helps you specify the time derivative of a parameter value, species amount, or compartment capacity.
the app shows a parameter block only for a parameter that is on the left-hand side of an ode, a natural break equation, or is modified by an event.
we can now display the expression line to show the dependency of this equation on the direct concentration in the plasma. it will be shown us a dash dotted line.
since we have defined all units in our system, it is recommended to activate the unit conversion in the simulation settings associated to this model. simbiology would then convert all quantities to one consistent unique system in order to solve the equations that will return the results into user-specified units.
once we are ready, we can use the model assessment tools to verify our model.
we can now visualize the differential equations derived from our diagram using mass patterns principles.
this concludes this tutorial. in the next video, we will see how to add algebraic equations to our model.
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 mathworks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
- (español)
- (english)
- (english)
欧洲
- (english)
- (english)
- (deutsch)
- (español)
- (english)
- (français)
- (english)
- (italiano)
- (english)
- (english)
- (english)
- (deutsch)
- (english)
- (english)
- switzerland
- (english)
亚太
- (english)
- (english)
- (english)
- 中国
- (日本語)
- (한국어)