Skip to content

Commit

Permalink
Add an internal implementation of UFF - currently just bonds
Browse files Browse the repository at this point in the history
Signed-off-by: Geoff Hutchison <geoff.hutchison@gmail.com>
  • Loading branch information
ghutchis committed Feb 5, 2025
1 parent 3ae0eec commit 86e36e2
Show file tree
Hide file tree
Showing 7 changed files with 807 additions and 4 deletions.
3 changes: 3 additions & 0 deletions avogadro/calc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ avogadro_headers(Calc
energycalculator.h
energymanager.h
lennardjones.h
uff.h
uffdata.h
)

target_sources(Calc PRIVATE
Expand All @@ -16,6 +18,7 @@ target_sources(Calc PRIVATE
energycalculator.cpp
energymanager.cpp
lennardjones.cpp
uff.cpp
)

avogadro_add_library(Calc)
Expand Down
3 changes: 3 additions & 0 deletions avogadro/calc/energymanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include "energymanager.h"
#include "energycalculator.h"
#include "lennardjones.h"
#include "uff.h"

namespace Avogadro::Calc {

Expand Down Expand Up @@ -92,6 +93,8 @@ EnergyManager::EnergyManager()
// LJ is the fallback, since it can handle anything
// (maybe not well, but it can handle it)
addModel(new LennardJones);
// UFF is good for a wide range of molecules
addModel(new UFF);
}

EnergyManager::~EnergyManager()
Expand Down
Loading

0 comments on commit 86e36e2

Please sign in to comment.