Tissue Forge C++ 0.2.1
Interactive, particle-based physics, chemistry and biology modeling and simulation environment
Loading...
Searching...
No Matches
tfDPDPotential.h
Go to the documentation of this file.
1/*******************************************************************************
2 * This file is part of mdcore.
3 * Copyright (c) 2022-2024 T.J. Sego
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU Lesser General Public License as published
7 * by the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 *
18 ******************************************************************************/
19
25#pragma once
26
27#include "tfPotential.h"
28
29#ifndef _MDCORE_INCLUDE_TFDPDPOTENTIAL_H_
30#define _MDCORE_INCLUDE_TFDPDPOTENTIAL_H_
31
32
33namespace TissueForge {
34
35
36 struct CAPI_EXPORT DPDPotential : public Potential {
37
39 FPTYPE alpha;
40
42 FPTYPE gamma;
43
45 FPTYPE sigma;
46
47 DPDPotential(FPTYPE alpha, FPTYPE gamma, FPTYPE sigma, FPTYPE cutoff, bool shifted);
48
58
64 std::string toString();
65
72 static DPDPotential *fromString(const std::string &str);
73 };
74
75
76 CPPAPI_FUNC(DPDPotential*) DPDPotential_fromStr(const std::string &str);
77
78};
79
80#endif // _MDCORE_INCLUDE_TFDPDPOTENTIAL_H_
Include Python header, disable linking to pythonX_d.lib on Windows in debug mode.
Definition tfAngleConfig.h:26
Definition tfDPDPotential.h:36
std::string toString()
Get a JSON string representation.
FPTYPE sigma
Definition tfDPDPotential.h:45
static DPDPotential * fromPot(Potential *pot)
Convert basic potential to DPD.
FPTYPE gamma
Definition tfDPDPotential.h:42
FPTYPE alpha
Definition tfDPDPotential.h:39
static DPDPotential * fromString(const std::string &str)
Create from a JSON string representation.
A Potential object is a compiled interpolation of a given function. The Universe applies potentials t...
Definition tfPotential.h:213