#include <users_modules/tutorials/vec-5/src/FreeSurfaceOps.hpp>
|
boost::shared_ptr< VectorDouble > | hPtr |
|
boost::shared_ptr< MatrixDouble > | gradHPtr |
|
boost::shared_ptr< VectorDouble > | gPtr |
|
template<bool I>
struct FreeSurfaceOps::OpRhsG< I >
- Examples
- free_surface.cpp.
Definition at line 1182 of file FreeSurfaceOps.hpp.
◆ OpRhsG()
template<bool I>
FreeSurfaceOps::OpRhsG< I >::OpRhsG |
( |
const std::string |
field_name, |
|
|
boost::shared_ptr< VectorDouble > |
h_ptr, |
|
|
boost::shared_ptr< MatrixDouble > |
grad_h_ptr, |
|
|
boost::shared_ptr< VectorDouble > |
g_ptr |
|
) |
| |
|
inline |
◆ iNtegrate()
Definition at line 1190 of file FreeSurfaceOps.hpp.
1193 const double vol = getMeasure();
1195 auto t_grad_h = getFTensor1FromMat<SPACE_DIM>(*
gradHPtr);
1197 auto t_coords = getFTensor1CoordsAtGaussPts();
1199 auto t_base = data.getFTensor0N();
1200 auto t_diff_base = data.getFTensor1DiffN<
SPACE_DIM>();
1201 auto t_w = getFTensor0IntegrationWeight();
1203 for (
int gg = 0; gg != nbIntegrationPts; ++gg) {
1205 const double r = t_coords(0);
1210 set_h =
init_h(t_coords(0), t_coords(1), t_coords(2));
1214 const double f =
get_f(set_h);
1217 for (; bb != nbRows; ++bb) {
1218 locF[bb] += (t_base * alpha) * (t_g -
f);
1219 locF[bb] -= (t_diff_base(
i) * (
eta2 * alpha)) * t_grad_h(
i);
1224 for (; bb < nbRowBaseFunctions; ++bb) {
◆ gPtr
◆ gradHPtr
◆ hPtr
The documentation for this struct was generated from the following file: