1 Star 1 Fork 0

吉祥水/featool-multiphysics

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
evalexpr.m 1.70 KB
一键复制 编辑 原始数据 按行查看 历史
function [ varargout ] = evalexpr( varargin )
%EVALEXPR Evaluates an expression in specified points.
%
% [ VEVAL ] = EVALEXPR( S_EXPR, XP, PROB, SOLNUM, VEC_EVAL, TOL )
% Evaluates the expression S_EXPR in the points specified in XP (in
% global x/y/z-coordinates). PROB is a valid finite element problem
% struct. The VEC_EVAL flag (default true) toggles vectorized
% evaluation for dof variables with P0-P2 fem shape functions.
% TOL is a tolerance used by ismembertol/deduplicate to determined
% which if any evaluation points in XP are aligned with grid points.
%
% Input Value/[Size] Description
% -----------------------------------------------------------------------------------
% s_expr string String expression to evaluate
% xp [n_sdim,n_xp] Coordinates of evaluation points
% prob struct Problem definition struct
% solnum scalar {n_sols} Solution number/time to evaluate
% vec_eval logical {true} Use vectorized evaluation for dep. variables
% tol scalar {1e-5} Tolerance for evalation/grid points
% .
% Output Value/(Size) Description
% -----------------------------------------------------------------------------------
% vEval [n_xp,1] Output vector of evaluated values
% Copyright 2013-2019 Precise Simulation, Ltd.
if( ~nargin && ~nargout ), help evalexpr, return, end
varargout = cell( 1, nargout );
[varargout{:}] = featool( 'feval', 'evalexpr', varargin{:} );
if( ~nargout ), clear varargout; end
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jixiangshui/featool-multiphysics.git
git@gitee.com:jixiangshui/featool-multiphysics.git
jixiangshui
featool-multiphysics
featool-multiphysics
master

搜索帮助