function [u,udot]=mphgetu(m,varargin)
% MPHGETU Return solution vector
% 
%   U=MPHGETU(MODEL,...) returns the solution vector U for the default 
%   solution dataset.
%
%   [U,UDOT]=MPHGETU(MODEL,...) returns in addition UDOT, which is the time
%   derivative of the solution vector. This syntax is available for a 
%   time-dependent solution only.
% 
%   For a time-dependent and parametric analysis type, the last solution is 
%   returned by default. 
%   For an Eigenvalue analysis type the first solution number is returned 
%   by default.
% 
%   Property    Value/{Default}                Description
%   -----------------------------------------------------------------------
%   Solname     String {''}                    Solver node tag
%   Solnum      Positive integer vector {''}   Solution for evaluation
% 
%   The Solname property set the solution dataset to use associated to use
%   with the defined solver node. 
% 
%   Example :
%     % Load cylinder_flow.mph from the Model Library:
%     model = mphload('cylinder_flow.mph');
%     % Get the solution vector for the last time step (default solution 
%     % number):
%     u = mphgetu(model);
%     %Get the solution vector and its derivative for solution number 4:
%     [u,udot] = mphgetu(model,'solnum',4);
% 
%   See also: mphgetp

% Copyright 2010-2011 COMSOL
