Download LiveLink for MATLAB User's Guide
Transcript
data = mphint2(model,<expr>,edim,'method',method);
where method can be 'integration' or 'summation'. The default uses the
appropriate method for the given expression.
• intorder, specify the integration order.
data = mphint2(model,<expr>,edim,'intorder',<order>);
where order is a positive integer. The default value is 4.
• intsurface or intvolume, compute surface or volume integral for axisymmetry
models.
data = mphint2(model,<expr>,edim,'intsurface','on');
data = mphint2(model,<expr>,edim,'intvolume','on');
Evaluating a Global Expression
Evaluate a global expression with the function mphglobal.
To evaluate a global expression at the MATLAB prompt, call the function mphglobal
as in this command
[d1,...,dn] = mphglobal(model,{'e1',...,'en'});
where e1,...,en are the COMSOL global expressions to evaluate. The output values
d1,...,dn are returned as a Px1 double array, with P the length of inner parameters.
SPECIFY THE EVALUATION DATA
The function mphglobal supports the following properties to set the data of the
evaluation to perform:
• dataset, specify the solution data set to use in the evaluation.
data = mphglobal(model,<expr>,'dataset',<dsettag>);
<dsettag> is the tag of a solution data set. The default value is the current solution
data set of the model.
• solnum, specify the inner solution number for data evaluation. Inner solutions are
generated for the following analysis types: time domain, frequency domain,
eigenvalue, or stationary with continuation parameters.
data = mphglobal(model,<expr>,'solnum',<solnum>);
where <solnum> is an integer array corresponding to the inner solution index. You
can also set the property solnum to 'end' to evaluate the expression for the last
inner solution. By default the evaluation is done using the last inner solution.
EXTRACTING RESULTS
|
129