69 CLASS(sources_c_accel),
INTENT(INOUT) :: this
70 CLASS(mesh_base),
INTENT(IN) :: Mesh
71 CLASS(fluxes_base),
INTENT(IN) :: Fluxes
72 CLASS(physics_base),
INTENT(IN) :: Physics
73 TYPE(Dict_TYP),
POINTER :: config, IO
78 CALL getattr(config,
"stype",stype)
80 CALL this%InitSources(mesh,fluxes,physics,config,io)
83 this%accel%data1d(:) = 0.0
86 CALL getattr(config,
"xaccel", accel(1), 0.0)
87 CALL getattr(config,
"yaccel", accel(2), 0.0)
88 CALL getattr(config,
"zaccel", accel(3), 0.0)
90 this%accel%data2d(:,k) = accel(k)
98 CLASS(sources_c_accel),
INTENT(INOUT):: this
99 CLASS(mesh_base),
INTENT(IN) :: Mesh
100 CLASS(physics_base),
INTENT(INOUT) :: Physics
101 CLASS(fluxes_base),
INTENT(IN) :: Fluxes
102 CLASS(sources_base),
INTENT(INOUT) :: Sources
103 REAL,
INTENT(IN) :: time, dt
104 CLASS(marray_compound),
INTENT(INOUT):: pvar,cvar,sterm
107 CALL physics%ExternalSources(this%accel,pvar,cvar,sterm)
113 CLASS(sources_c_accel),
INTENT(INOUT) :: this
114 CLASS(mesh_base),
INTENT(IN) :: Mesh
115 CLASS(physics_base),
INTENT(INOUT) :: Physics
116 CLASS(fluxes_base),
INTENT(IN) :: Fluxes
117 CLASS(marray_compound),
INTENT(INOUT) :: pvar,cvar
118 REAL,
INTENT(IN) :: time
119 REAL,
INTENT(OUT) :: dt
127 CLASS(sources_c_accel),
INTENT(IN) :: this
128 CLASS(mesh_base),
INTENT(IN) :: Mesh
135 CLASS(sources_c_accel),
INTENT(INOUT) :: this
137 CALL this%accel%Destroy()
subroutine infosources(this, Mesh)
generic source terms module providing functionaly common to all source terms
source terms module for constant acceleration
derived class for compound of mesh arrays
base class for mesh arrays
character(len=32) source_name
subroutine initsources_c_accel(this, Mesh, Physics, Fluxes, config, IO)
subroutine finalize(this)
Dictionary for generic data types.
subroutine calctimestep_single(this, Mesh, Physics, Fluxes, pvar, cvar, time, dt)
base module for numerical flux functions
subroutine externalsources_single(this, Mesh, Physics, Fluxes, Sources, time, dt, pvar, cvar, sterm)