WARPXM v1.10.0
Loading...
Searching...
No Matches
wmapplication.h File Reference
#include "lib/wxlogstream.h"
#include "lib/wxcryptset.h"
#include "warpxm/warpxm_config.h"
#include "app_base.h"
#include <iostream>
#include <vector>
#include <memory>

Go to the source code of this file.

Classes

struct  solverVariables_t
 
class  WmApplication
 Base Class for physics applications. More...
 

Typedefs

typedef solverVariables_t fluxVariables_t
 
typedef solverVariables_t elementGeometry_t
 
typedef solverVariables_t solver_variables_t
 

Enumerations

enum  {
  WMAPPLICATIONFLAG_NONE = 0 , WMAPPLICATIONFLAG_NUMERICALFLUX = 1 , WMAPPLICATIONFLAG_BC_NUMERICALFLUX = 2 , WMAPPLICATIONFLAG_GRADIENT_BC = 3 ,
  WMAPPLICATIONFLAG_INTERNALFLUX = 4 , WMAPPLICATIONFLAG_NUMERICALDIFFUSION = 5 , WMAPPLICATIONFLAG_BC_NUMERICALDIFFUSION = 6 , WMAPPLICATIONFLAG_INTERNALDIFFUSION = 7 ,
  WMAPPLICATIONFLAG_SOURCE = 8 , WMAPPLICATIONFLAG_BC_XQ = 9 , WMAPPLICATIONFLAG_BC_Q = 10 , WMAPPLICATIONFLAG_CONSERVED_PRIMITIVE_CONVERSION = 11 ,
  WMAPPLICATIONFLAG_EVALUATE_FUNCTION = 12 , WMAPPLICATIONFLAG_KINETIC_BC_Q = 13
}
 

Functions

std::vector< int > map_sub_app_indices (const std::vector< int > &parent_idcs, const std::vector< int > &child_idcs)
 Constructs the map for converting between parent vars and child vars.
 
void map_parent_to_sub_app (const std::vector< int > &map, const real *parent_q, std::vector< real > &child_q)
 Reads data from parent_q and writes into child_q.
 
void map_sub_app_to_parent (const std::vector< int > &map, real *parent_q, const std::vector< real > &child_q)
 Adds data from child_q into parent_q.
 

Typedef Documentation

◆ elementGeometry_t

◆ fluxVariables_t

◆ solver_variables_t

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
WMAPPLICATIONFLAG_NONE 
WMAPPLICATIONFLAG_NUMERICALFLUX 
WMAPPLICATIONFLAG_BC_NUMERICALFLUX 
WMAPPLICATIONFLAG_GRADIENT_BC 
WMAPPLICATIONFLAG_INTERNALFLUX 
WMAPPLICATIONFLAG_NUMERICALDIFFUSION 
WMAPPLICATIONFLAG_BC_NUMERICALDIFFUSION 
WMAPPLICATIONFLAG_INTERNALDIFFUSION 
WMAPPLICATIONFLAG_SOURCE 
WMAPPLICATIONFLAG_BC_XQ 
WMAPPLICATIONFLAG_BC_Q 
WMAPPLICATIONFLAG_CONSERVED_PRIMITIVE_CONVERSION 
WMAPPLICATIONFLAG_EVALUATE_FUNCTION 
WMAPPLICATIONFLAG_KINETIC_BC_Q 

Function Documentation

◆ map_parent_to_sub_app()

void map_parent_to_sub_app ( const std::vector< int > &  map,
const real parent_q,
std::vector< real > &  child_q 
)

Reads data from parent_q and writes into child_q.

Which data is read is based on the given map pre-generated by map_sub_map_indices.

◆ map_sub_app_indices()

std::vector< int > map_sub_app_indices ( const std::vector< int > &  parent_idcs,
const std::vector< int > &  child_idcs 
)

Constructs the map for converting between parent vars and child vars.

◆ map_sub_app_to_parent()

void map_sub_app_to_parent ( const std::vector< int > &  map,
real parent_q,
const std::vector< real > &  child_q 
)

Adds data from child_q into parent_q.

Which data is read is based on the given map pre-generated by map_sub_map_indices.