Chi-Tech
doc_Ba_Groupsets.h
Go to the documentation of this file.
1
/** \defgroup LuaLBSGroupsets Groupsets
2
3
The code below is an example of a complete specification of a groupset.
4
5
\code
6
--===================================== Setup physics
7
phys1 = chiLBSCreateSolver()
8
chiSolverAddRegion(phys1,region1)
9
10
chiLBSSetProperty(phys1,DISCRETIZATION_METHOD,PWLD3D)
11
chiLBSSetProperty(phys1,SCATTERING_ORDER,1)
12
13
--========== Groups
14
grp = {}
15
for g=1,num_groups do
16
grp[g] = chiLBSCreateGroup(phys1)
17
end
18
19
--========== ProdQuad
20
pquad0 = chiCreateProductQuadrature(GAUSS_LEGENDRE_CHEBYSHEV,2, 2)
21
pquad1 = chiCreateProductQuadrature(GAUSS_LEGENDRE_CHEBYSHEV,8, 8)
22
23
--========== Groupset def
24
gs0 = chiLBSCreateGroupset(phys1)
25
26
cur_gs = gs0
27
chiLBSGroupsetAddGroups(phys1,cur_gs,0,15)
28
chiLBSGroupsetSetQuadrature(phys1,cur_gs,pquad0)
29
chiLBSGroupsetSetAngleAggDiv(phys1,cur_gs,1)
30
chiLBSGroupsetSetGroupSubsets(phys1,cur_gs,1)
31
chiLBSGroupsetSetIterativeMethod(phys1,cur_gs,NPT_GMRES)
32
chiLBSGroupsetSetResidualTolerance(phys1,cur_gs,1.0e-4)
33
chiLBSGroupsetSetMaxIterations(phys1,cur_gs,300)
34
chiLBSGroupsetSetGMRESRestartIntvl(phys1,cur_gs,30)
35
chiLBSGroupsetSetWGDSA(phys1,cur_gs,30,1.0e-4,false," ")
36
chiLBSGroupsetSetTGDSA(phys1,cur_gs,30,1.0e-4,false," ")
37
\endcode
38
39
Groupsets segregate the code into pieces arranged by the number of groups
40
it contains. A great deal of care must be taken with intergroupset transfer
41
since the order in which the groupsets are executed determine what information
42
will be available to them.
43
44
\ingroup LBSUtilities*/
modules
LinearBoltzmannSolvers
doc
doc_Ba_Groupsets.h
Generated by
1.9.3