Continuum Membrane 719025a62b1e384a6ff80e2f2a223ef4012153dc
Loading...
Searching...
No Matches
Force.hpp
Go to the documentation of this file.
1
12#pragma once
13
14#include <sstream>
15#include <ostream>
16#include <omp.h>
17#include <iomanip>
18#include <algorithm>
19
21#include "Parameters.hpp"
22
23
113
122Force operator+(const Force& lhs, const Force& rhs);
123
134Force& operator+=(Force& lhs, const Force& rhs);
Force operator+(const Force &lhs, const Force &rhs)
This code defines a binary operator + for the Force class. The operator takes two const references to...
Force & operator+=(Force &lhs, const Force &rhs)
This code defines a compound assignment operator += for the Force class. The operator takes a referen...
This file defines essential parameters used in continuum membrane as well as membrane dynamics code....
This class includes 7 components in calculating force exerted on vertrices: force due to membrane ben...
Definition Force.hpp:32
Force()
Construct a new Force object with all force components set to zero.
Matrix forceTilt
Force due to lipid tilting.
Definition Force.hpp:38
Matrix forceRegularization
Definition Force.hpp:39
Matrix forceCurvature
Force due to membrane bending.
Definition Force.hpp:34
std::string to_string_full()
Returns a string representation of the force values for various properties.
Matrix & calculate_total_force()
Set forceTotal to the sum of 7 force components.
Matrix forceHarmonicBond
Definition Force.hpp:44
friend std::ostream & operator<<(std::ostream &stream, const Force &force)
Overrides the operator<< in ostream. Outputs force in the format of (forceTotal[0],...
double get_total_force_magnitude()
Get the magnitude (norm) of total force.
Matrix forceTotal
Total force by summing up the 7 force terms.
Definition Force.hpp:49
void set_all_zero()
Reset all force components to zero without reallocating matrices.
Matrix forceVolume
Force due to volume constraint; set 0 if membrane is flat.
Definition Force.hpp:36
Force(const Force &force)
Construct a new Force object with all force components set to the same as the input force,...
Matrix forceArea
Force due to area constraint.
Definition Force.hpp:35
std::string to_string_full_at_vertex(const int i)
Returns a string representation of the forces acting on a vertex for each property.
Matrix forceThickness
Force due to membrane thickness change.
Definition Force.hpp:37
Matrix used in continuum membrane model.
Definition Linear_algebra.hpp:65