FEM-Course-Matlab/16.几何非线性有限元matlab编程/几何非线性有限元-悬臂梁/flags_pos.m

46 lines
1.4 KiB
Mathematica
Raw Permalink Normal View History

2024-01-28 16:46:36 +00:00
%% flags_pos
%
% This file contains flags related to the post-processing options.
% These are constant variables that have a global scope to help users and developers understanding the program.
% It is necessary to include this file in every function that uses a global variable.
%
% It is recommended that any contribution to the code be documented through comments in the History section.
%
%% Author
% * Rafael Lopez Rangel (rafaelrangel@tecgraf.puc-rio.br)
%
% Pontifical Catholic University of Rio de Janeiro (PUC-Rio), Department of Civil and Environmental Engineering and
% Tecgraf Institute of Technical-Scientific Software Development of PUC-Rio (Tecgraf/PUC-Rio)
%
%% History
% April/2019 - RLR
% File created with two types of variables:
% Plotting Options: PLOT_GRAPH, PLOT_MODEL, PLOT_BOTH.
% Results Options: RES_STEPS, RES_ITER, RES_BOTH.
% General Flags: NO, YES.
%
%% Plotting Options
global PLOT_GRAPH % Plot equilibrium path (load ratio vs. displacements)
global PLOT_MODEL % Plot deformed structure
global PLOT_BOTH % Plot equilibrium path and deformed structure
PLOT_GRAPH = 1;
PLOT_MODEL = 2;
PLOT_BOTH = 3;
%% Results Options
global RES_STEPS % Plot results for every step (converged equilibrium points)
global RES_ITER % Plot results for every iteration
global RES_BOTH % Plot results for every step and iteration
RES_STEPS = 1;
RES_ITER = 2;
RES_BOTH = 3;
%% General Flags
global NO
global YES
NO = 0;
YES = 1;