Commit 56e1a052 authored by julient31's avatar julient31
Browse files

Commit JT 092319

- modified norm input in min_modify
- corrected doc/src/min_modify.txt
- added expression of the norms
- added a min max method in src/min.h
parent f1563ed9
Loading
Loading
Loading
Loading
+9.25 KiB
Loading image diff...
+15 −0
Original line number Diff line number Diff line
\documentclass[preview]{standalone}
\usepackage{varwidth}
\usepackage[utf8x]{inputenc}
\usepackage{amsmath, amssymb, graphics, setspace}

\begin{document}
\begin{varwidth}{50in}
  \begin{equation}
    % \left| \left| \vec{F} \right| \right|_2 
    || \vec{F} ||_{max} 
    = {\rm max}\left(||\vec{F}_1||, \cdots, ||\vec{F}_N||\right)
    \nonumber
  \end{equation}
\end{varwidth}
\end{document}
+5.91 KiB
Loading image diff...
+15 −0
Original line number Diff line number Diff line
\documentclass[preview]{standalone}
\usepackage{varwidth}
\usepackage[utf8x]{inputenc}
\usepackage{amsmath, amssymb, graphics, setspace}

\begin{document}
\begin{varwidth}{50in}
  \begin{equation}
    % \left| \left| \vec{F} \right| \right|_2 
    || \vec{F} ||_{2} 
    = \sqrt{\vec{F}_1+ \cdots + \vec{F}_N}
    \nonumber
  \end{equation}
\end{varwidth}
\end{document}
+13 −5
Original line number Diff line number Diff line
@@ -18,8 +18,9 @@ keyword = {dmax} or {line} or {norm} or {alpha_damp} or {discrete_factor}
    max = maximum distance for line search to move (distance units)
  {line} value = {backtrack} or {quadratic} or {forcezero} or {spin_cubic} or {spin_none}
    backtrack,quadratic,forcezero,spin_cubic,spin_none = style of linesearch to use 
  {norm} value = {euclidean} or {max}
    euclidean,max = style of norm to use 
  {norm} value = {two} or {max}
    two = Euclidean two-norm (length of 3N vector)
    max = max value of across all 3-vectors
  {alpha_damp} value = damping
    damping = fictitious Gilbert damping for spin minimization (adim)
  {discrete_factor} value = factor
@@ -74,9 +75,16 @@ could move in the gradient direction to reduce forces further.
The choice of a norm can be modified for the min styles {cg}, {sd}, 
{quickmin}, {fire}, {spin}, {spin/cg} and {spin/lbfgs} using 
the {norm} keyword.
The default {euclidean} norm computes the 2-norm (length) of the
global force vector. The {max} norm computes the maximum value
of the 2-norms across all forces in the system.  
The default {two} norm computes the 2-norm (Euclidean length) of the
global force vector:

:c,image(Eqs/norm_two.jpg) 

The {max} norm computes the length of the 3-vector force 
for each atom  (2-norm), and takes the maximum value of those accross 
all atoms

:c,image(Eqs/norm_max.jpg) 

Keywords {alpha_damp} and {discrete_factor} only make sense when
a "min_spin"_min_spin.html command is declared. 
Loading