Parallel Finite Element - General geometry Ewald-like Method
Part of Continuum-particle Simulation Suite under MICCOM
fix_rigid_surface_constraint.h
Go to the documentation of this file.
1 // Parallel Finite Element-General Geometry Ewald-like Method.
2 // Copyright (C) 2015-2016 Xujun Zhao, Jiyuan Li, Xikai Jiang
3 
4 // This code is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU General Public
6 // License as published by the Free Software Foundation; either
7 // version 2.1 of the License, or (at your option) any later version.
8 
9 
10 // This code 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 GNU
13 // Lesser General Public License for more details.
14 
15 
16 // You should have received a copy of the GNU General Public
17 // License along with this code; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 
20 
21 #pragma once
22 
23 #include "fix_rigid.h"
24 namespace libMesh
25 {
26 
28 {
29 public:
31 
33 
34  void print_fix();
35 
36  void initParams();
37 
38  void compute();
39 
40 private:
41  void compute_constraint_force(const std::size_t& i,
42  std::vector<Point>& nodal_force);
43  // surface spring constant
44  Real surface_spring_constant;
45 
46  // center spring constant
47  Real center_spring_constant;
48 };
49 
50 }
FixRigidSurfaceConstraint(PMLinearImplicitSystem &pm_sys)
Definition: fix_rigid_surface_constraint.C:3
Definition: fix_rigid.h:41
void compute()
Definition: fix_rigid_surface_constraint.C:34
Definition: fix_rigid_surface_constraint.h:27
Definition: brownian_system.h:58
~FixRigidSurfaceConstraint()
Definition: fix_rigid_surface_constraint.h:32
Definition: pm_linear_implicit_system.h:52
void print_fix()
Definition: fix_rigid_surface_constraint.C:27
void initParams()
Check if num of parameters are correct.
Definition: fix_rigid_surface_constraint.C:10