Continuum Membrane 719025a62b1e384a6ff80e2f2a223ef4012153dc
Loading...
Searching...
No Matches
Record.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <vector>
4#include <iostream>
6
12class Record
13{
14public:
15 std::vector<double> areaTotal;
16 std::vector<Energy> energyVec;
17 std::vector<double> meanForce;
18
23
29 Record(const int numIterations);
30
41 void add(const double currentArea, const Energy &currentEnergy, const double currentMeanForce);
42
55 void set(const int iteration, const double currentArea, const Energy &currentEnergy, const double currentMeanForce);
56
69 void print_iteration(const int iteration);
70};
This file defines the Energy class with scaffold extensions.
This class includes components in calculating energy on vertrices including membrane bending energy,...
Definition Energy.hpp:26
Bookkeeps simulation data throughout iterations.
Definition Record.hpp:13
std::vector< double > areaTotal
Vector of total surface area values.
Definition Record.hpp:15
void add(const double currentArea, const Energy &currentEnergy, const double currentMeanForce)
Adds a new record to the data vectors.
std::vector< double > meanForce
Vector of mean force values.
Definition Record.hpp:17
void print_iteration(const int iteration)
Prints information about a single iteration of the optimization algorithm.
std::vector< Energy > energyVec
Vector of energy values.
Definition Record.hpp:16
Record()
Constructor for Record class.
Record(const int numIterations)
Constructor for Record class that pre-allocates memory for the data vectors.
void set(const int iteration, const double currentArea, const Energy &currentEnergy, const double currentMeanForce)
Sets the values for a specific record in the data vectors.