1913 {
1915
1918
1919 double time = OP::getFEMethod()->ts_t;
1922 }
1923
1924
1925 EntityHandle fe_ent = OP::getFEEntityHandle();
1926
1928
1929 if (bc.faces.find(fe_ent) != bc.faces.end()) {
1931 int nb_integration_pts = OP::getGaussPts().size2();
1932 auto t_w = OP::getFTensor0IntegrationWeight();
1933
1934 int nb_base_functions = data.
getN().size2();
1936
1937 auto get_ftensor1 = [](
auto &
v) {
1940 };
1941
1942
1943
1944
1945
1946
1947
1949
1950 auto get_rotation_angle = [&]() {
1951 double theta = bc.theta;
1954 }
1955 return theta;
1956 };
1957
1958 auto get_rotation = [&](auto theta) {
1960 if (bc.vals.size() == 7) {
1961 t_omega(0) = bc.vals[4];
1962 t_omega(1) = bc.vals[5];
1963 t_omega(2) = bc.vals[6];
1964 } else {
1965
1966 t_omega(
i) = OP::getFTensor1Normal()(
i);
1967 }
1968 if (t_omega.
l2() > std::numeric_limits<double>::epsilon()) {
1970 }
1971 t_omega(
i) *= theta;
1973 RotSelector::SMALL_ROT
1974 ? 0.
1975 : t_omega.l2());
1976 };
1977
1978 auto area = getMeasure();
1979 auto t_R = get_rotation(get_rotation_angle());
1980 auto t_coords = OP::getFTensor1CoordsAtGaussPts();
1981 auto t_disp_val =
1983 *this->sourceVec, nb_integration_pts)();
1984
1985 for (int gg = 0; gg != nb_integration_pts; ++gg) {
1986 auto tau_scale =
1987 area * t_w * OP::betaCoeff(t_coords(0), t_coords(1), t_coords(2));
1988
1990 t_delta(
i) = t_center(
i) - t_coords(
i);
1992 t_bc_disp(
i) = t_delta(
i) - t_R(
i,
j) * t_delta(
j);
1993
1994 auto t_nf = getFTensor1FromPtr<3>(&*OP::locF.begin());
1995 int bb = 0;
1996 for (; bb != nb_dofs /
SPACE_DIM; ++bb) {
1998 (tau_scale * t_row_base_fun) * (t_disp_val(
i) - t_bc_disp(
i));
1999 ++t_nf;
2000 ++t_row_base_fun;
2001 }
2002 for (; bb != nb_base_functions; ++bb)
2003 ++t_row_base_fun;
2004
2005 ++t_w;
2006 ++t_coords;
2007 ++t_disp_val;
2008 }
2009 }
2010 }
2011
2013}
#define FTENSOR_INDEX(DIM, I)
Tensor1< T, Tensor_Dim > normalize()
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
FTensor::Index< 'i', SPACE_DIM > i
const double v
phase velocity of light in medium (cm/ns)
FTensor::Index< 'j', 3 > j
DataLayoutTraits< DataLayout::GaussByCoeffs > DL
decltype(GetFTensor1FromMatImpl< Tensor_Dim, S, DL, M >::get(std::declval< M & >(), 0, 0)) GetFTensor1FromMatType
static enum RotSelector rotSelector
static PetscBool physicalTimeFlg
static double currentPhysicalTime
static auto exp(A &&t_w_vee, B &&theta)
FTensor::Tensor0< FTensor::PackPtr< double *, 1 > > getFTensor0N(const FieldApproximationBase base)
Get base function as Tensor0.
MatrixDouble & getN(const FieldApproximationBase base)
get base functions this return matrix (nb. of rows is equal to nb. of Gauss pts, nb....
const VectorInt & getIndices() const
Get global indices of degrees of freedom on entity.