Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

agrego faltante #13

Merged
merged 2 commits into from
Sep 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions src/nodes2dofs.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
% Copyright (C) 2021, Jorge M. Perez Zerpa, J. Bruno Bazzano, Joaquin Viera,
% Mauricio Vanzulli, Marcelo Forets, Jean-Marc Battini, Sebastian Toro
%
% This file is part of ONSAS.
%
% ONSAS is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
%
% ONSAS is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
%
% You should have received a copy of the GNU General Public License
% along with ONSAS. If not, see <https://www.gnu.org/licenses/>.

% Function that converts a vector of nodes indices to a vector of the
% corresponding degrees of freedom.

function [dofs] = nodes2dofs( nodes , degreespernode )
nodes= nodes(:) ;
n = length(nodes);
dofs = zeros( n*degreespernode , 1 ) ;
for i=1:n
dofs( (i-1)*degreespernode + (1:degreespernode) ) = [ (degreespernode*(nodes(i)-1))+(1:degreespernode) ]' ;
end
2 changes: 1 addition & 1 deletion tex/Cap2_NonLinGeo.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1003,7 +1003,7 @@ \subsection{Método de los Elementos Finitos en análisis lineal de reticulados}
%
\begin{equation}
\delta W_{\text{int}}(\bfu^e) %
= \int_{\ell_0^e} \delta \varepsilon^e \, \sigma^e \, \dif x %
= \int_{\ell_0^e} \delta \varepsilon^e \, \sigma^e \, A \, \dif x %
%
= \int_{\ell_0^e} \left( \delta \bfu^e\right)^{\text{T}} \left( \bfb_L^e\right)^{\text{T}} E A \bfb_L^e \bfu^e \, \dif x %
%
Expand Down
Binary file modified tex/libroANLE.pdf
Binary file not shown.