KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
Classes | Namespaces | Macros
swimming_DEM_application.h File Reference
#include <string>
#include <iostream>
#include "includes/define.h"
#include "includes/kratos_application.h"
#include "includes/variables.h"
#include "includes/dem_variables.h"
#include "includes/cfd_variables.h"
#include "custom_elements/monolithic_dem_coupled.h"
#include "custom_elements/monolithic_dem_coupled_weak.h"
#include "custom_elements/calculate_laplacian_simplex_element.h"
#include "custom_elements/calculate_mat_deriv_simplex_element.h"
#include "custom_elements/calculate_component_gradient_simplex_element.h"
#include "custom_elements/calculate_gradient_Pouliot_2012.h"
#include "custom_elements/calculate_gradient_Pouliot_2012_edge.h"
#include "custom_elements/calculate_velocity_laplacian_component.h"
#include "custom_elements/calculate_velocity_laplacian.h"
#include "custom_elements/shell_rigid.h"
#include "custom_conditions/monolithic_dem_coupled_wall_condition.h"
#include "custom_conditions/calculate_laplacian_simplex_condition.h"
#include "custom_elements/swimming_particle.h"
#include "custom_elements/spheric_particle.h"
#include "custom_elements/nanoparticle.h"
#include "custom_elements/analytic_spheric_particle.h"
Include dependency graph for swimming_DEM_application.h:

Go to the source code of this file.

Classes

class  Kratos::KratosSwimmingDEMApplication
 

Namespaces

 Kratos
 REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
 

Macros

#define SWIMMING_COPY_SECOND_TO_FIRST_3(a, b)   a[0] = b[0]; a[1] = b[1]; a[2] = b[2];
 
#define SWIMMING_ADD_SECOND_TO_FIRST(a, b)   a[0] += b[0]; a[1] += b[1]; a[2] += b[2];
 
#define SWIMMING_SET_COMPONENTS_TO_ZERO_3(a)   a[0] = 0.0; a[1] = 0.0; a[2] = 0.0;
 
#define SWIMMING_SET_COMPONENTS_TO_ZERO_3x3(a)   a[0][0] = 0.0; a[0][1] = 0.0; a[0][2] = 0.0; a[1][0] = 0.0; a[1][1] = 0.0; a[1][2] = 0.0; a[2][0] = 0.0; a[2][1] = 0.0; a[2][2] = 0.0;
 
#define SWIMMING_MULTIPLY_BY_SCALAR_3(a, b)   a[0] = b * a[0]; a[1] = b * a[1]; a[2] = b * a[2];
 
#define SWIMMING_MODULUS_3(a)   std::sqrt(a[0] * a[0] + a[1] * a[1] + a[2] * a[2])
 
#define SWIMMING_INNER_PRODUCT_3(a, b)   (a[0] * b[0] + a[1] * b[1] + a[2] * b[2])
 
#define SWIMMING_SET_TO_CROSS_OF_FIRST_TWO_3(a, b, c)   c[0] = a[1] * b[2] - a[2] * b[1]; c[1] = a[2] * b[0] - a[0] * b[2]; c[2] = a[0] * b[1] - a[1] * b[0];
 
#define SWIMMING_POW_2(a)   (a * a)
 
#define SWIMMING_POW_3(a)   (a * a * a)
 
#define SWIMMING_POW_4(a)   (a * a * a * a)
 
#define SWIMMING_POW_5(a)   (a * a * a * a * a)
 
#define SWIMMING_POW_6(a)   (a * a * a * a * a * a)
 
#define SWIMMING_POW_7(a)   (a * a * a * a * a * a * a)
 

Macro Definition Documentation

◆ SWIMMING_ADD_SECOND_TO_FIRST

#define SWIMMING_ADD_SECOND_TO_FIRST (   a,
 
)    a[0] += b[0]; a[1] += b[1]; a[2] += b[2];

◆ SWIMMING_COPY_SECOND_TO_FIRST_3

#define SWIMMING_COPY_SECOND_TO_FIRST_3 (   a,
 
)    a[0] = b[0]; a[1] = b[1]; a[2] = b[2];

◆ SWIMMING_INNER_PRODUCT_3

#define SWIMMING_INNER_PRODUCT_3 (   a,
 
)    (a[0] * b[0] + a[1] * b[1] + a[2] * b[2])

◆ SWIMMING_MODULUS_3

#define SWIMMING_MODULUS_3 (   a)    std::sqrt(a[0] * a[0] + a[1] * a[1] + a[2] * a[2])

◆ SWIMMING_MULTIPLY_BY_SCALAR_3

#define SWIMMING_MULTIPLY_BY_SCALAR_3 (   a,
 
)    a[0] = b * a[0]; a[1] = b * a[1]; a[2] = b * a[2];

◆ SWIMMING_POW_2

#define SWIMMING_POW_2 (   a)    (a * a)

◆ SWIMMING_POW_3

#define SWIMMING_POW_3 (   a)    (a * a * a)

◆ SWIMMING_POW_4

#define SWIMMING_POW_4 (   a)    (a * a * a * a)

◆ SWIMMING_POW_5

#define SWIMMING_POW_5 (   a)    (a * a * a * a * a)

◆ SWIMMING_POW_6

#define SWIMMING_POW_6 (   a)    (a * a * a * a * a * a)

◆ SWIMMING_POW_7

#define SWIMMING_POW_7 (   a)    (a * a * a * a * a * a * a)

◆ SWIMMING_SET_COMPONENTS_TO_ZERO_3

#define SWIMMING_SET_COMPONENTS_TO_ZERO_3 (   a)    a[0] = 0.0; a[1] = 0.0; a[2] = 0.0;

◆ SWIMMING_SET_COMPONENTS_TO_ZERO_3x3

#define SWIMMING_SET_COMPONENTS_TO_ZERO_3x3 (   a)    a[0][0] = 0.0; a[0][1] = 0.0; a[0][2] = 0.0; a[1][0] = 0.0; a[1][1] = 0.0; a[1][2] = 0.0; a[2][0] = 0.0; a[2][1] = 0.0; a[2][2] = 0.0;

◆ SWIMMING_SET_TO_CROSS_OF_FIRST_TWO_3

#define SWIMMING_SET_TO_CROSS_OF_FIRST_TWO_3 (   a,
  b,
 
)    c[0] = a[1] * b[2] - a[2] * b[1]; c[1] = a[2] * b[0] - a[0] * b[2]; c[2] = a[0] * b[1] - a[1] * b[0];