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