svMultiPhysics
Loading...
Searching...
No Matches
cmm.h
1// SPDX-FileCopyrightText: Copyright (c) Stanford University, The Regents of the University of California, and others.
2// SPDX-License-Identifier: BSD-3-Clause
3
4#ifndef CMM_H
5#define CMM_H
6
7#include "ComMod.h"
8#include "Simulation.h"
9
10/// @brief These subroutines implement the Coupled Momentum Method (CMM).
11namespace cmm {
12
13void cmm_3d(ComMod& com_mod, const int eNoN, const double w, const Vector<double>& N, const Array<double>& Nx,
14 const Array<double>& al, const Array<double>& yl, const Array<double>& bfl, const Array<double>& Kxi,
15 Array<double>& lR, Array3<double>& lK);
16
17void cmm_b(ComMod& com_mod, const faceType& lFa, const int e, const Array<double>& al, const Array<double>& dl,
18 const Array<double>& xl, const Array<double>& bfl, const Vector<double>& pS0l, const Vector<double>& vwp,
19 const Vector<int>& ptr);
20
21void bcmmi(ComMod& com_mod, const int eNoN, const int idof, const double w, const Vector<double>& N, const Array<double>& Nxi,
22 const Array<double>& xl, const Array<double>& tfl, Array<double>& lR);
23
24void cmmi(ComMod& com_mod, const mshType& lM, const Array<double>& al, const Array<double>& dl, const Array<double>& xl,
25 const Array<double>& bfl, const Array<double>& pS0l, const Vector<double>& vwp, const Vector<int>& ptr);
26
27void cmm_mass(ComMod& com_mod, const double w, const Vector<double>& N, const Array<double>& al,
28 const Array<double>& bfl, const Vector<double>& vwp, Array<double>& lR, Array3<double>& lK);
29
30void cmm_stiffness(ComMod& com_mod, const Array<double>& Nxi, const Array<double>& xl, const Array<double>& dl,
31 const Vector<double>& pS0l, const Vector<double>& vwp, Vector<double>& pSl, Array<double>& lR, Array3<double>& lK);
32
33void construct_cmm(ComMod& com_mod, const mshType& lM, const Array<double>& Ag, const Array<double>& Yg, const Array<double>& Dg);
34
35};
36
37#endif
38
The Array3 template class implements a simple interface to 3D arrays.
Definition Array3.h:25
The ComMod class duplicates the data structures in the Fortran COMMOD module defined in MOD....
Definition ComMod.h:1514
The Vector template class is used for storing int and double data.
Definition Vector.h:23
The face type containing mesh at boundary.
Definition ComMod.h:511
This is the container for a mesh or NURBS patch, those specific to NURBS are noted.
Definition ComMod.h:863
These subroutines implement the Coupled Momentum Method (CMM).
Definition cmm.cpp:16
void cmmi(ComMod &com_mod, const mshType &lM, const Array< double > &al, const Array< double > &dl, const Array< double > &xl, const Array< double > &bfl, const Vector< double > &pS0l, const Vector< double > &vwp, const Vector< int > &ptr)
CMM initialization (interior).
Definition cmm.cpp:351
void construct_cmm(ComMod &com_mod, const mshType &lM, const Array< double > &Ag, const Array< double > &Yg, const Array< double > &Dg)
Reproduces Fortran 'CONSTRUCT_CMM'.
Definition cmm.cpp:758