The Conley-Morse Graphs Software
p_differ.h
Go to the documentation of this file.
1/////////////////////////////////////////////////////////////////////////////
2///
3/// @file p_differ.h
4///
5/// Parameters for a sample difference equation in R^2 with 2 parameters.
6/// This is a configuration file for the program "cmgraphs.cpp"
7/// which defines the ranges of parameters to scan
8/// and the details of the phase space.
9///
10/// @author Pawel Pilarczyk
11///
12/////////////////////////////////////////////////////////////////////////////
13
14// Copyright (C) 1997-2014 by Pawel Pilarczyk.
15//
16// This file is part of my research software package. This is free software:
17// you can redistribute it and/or modify it under the terms of the GNU
18// General Public License as published by the Free Software Foundation,
19// either version 3 of the License, or (at your option) any later version.
20//
21// This software is distributed in the hope that it will be useful,
22// but WITHOUT ANY WARRANTY; without even the implied warranty of
23// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24// GNU General Public License for more details.
25//
26// You should have received a copy of the GNU General Public License
27// along with this software; see the file "license.txt". If not,
28// please, see <https://www.gnu.org/licenses/>.
29
30// Started on February 9, 2008. Last revision: March 7, 2008.
31
32
33#ifndef _CMGRAPHS_P_H_
34#define _CMGRAPHS_P_H_
35
36
37namespace custom {
38
39/// Parameters for a sample difference equation in R^2 with 2 parameters.
40namespace difference {
41
42
43// --------------------------------------------------
44// --------- the phase space configuration ----------
45// --------------------------------------------------
46
47/// The dimension of the phase space.
48const int spaceDim = 2;
49
50/// Is space wrapping (a.k.a. periodic boundary conditions)
51/// in effect in the given directions?
52const bool spaceWrapping [spaceDim] = {false, false};
53
54/// The initial depth of subdivisions in the phase space.
55const int initialDepth = 5;
56
57/// The final depth of subdivisions in the phase space.
58const int finalDepth = 10;
59
60
61// --------------------------------------------------
62// ------------ the parameter selection -------------
63// --------------------------------------------------
64
65/// The dimension of the parameter space to iterate. Only those parameters
66/// which are varying are taken into consideration here.
67const int paramDim = 2;
68
69/// The numbers of subintervals in each direction of the parameter space.
70/// The type of these numbers must match "parCoord" in "typedefs.h".
71const short int paramSubdiv [paramDim] = {800, 800};
72
73/// The numbers of parameters to subdivide.
74const int paramSelect [paramDim] = {0, 1};
75
76
77// --------------------------------------------------
78// ---------- the parameter space settings ----------
79// --------------------------------------------------
80
81/// The number of all the parameters, both varying and fixed.
82const int paramCount = 2;
83
84/// The left bounds on the parameters: b > 1, h < (sqrt(b) - 1)^2.
85const double paramLeft [paramCount] = {1.0, 0};
86
87/// The right bounds on the parameters: b, h.
88const double paramRight [paramCount] = {9.0, 4};
89
90
91// --------------------------------------------------
92// -------------- the phase space size --------------
93// --------------------------------------------------
94
95/// An imitation of an array which returns the offset of the rectangular area
96/// in the phase space which contains the invariant sets of interest.
98{
99 /// Returns the space offset in the requested direction.
100 double operator [] (int n) const
101 {
102 return 0;
103 }
104}; /* struct SpaceOffsetType */
105
106/// An imitation of an array which returns the offset of the rectangular area
107/// in the phase space which contains the invariant sets of interest.
109
110/// An imitation of an array which returns the width of the rectangular area
111/// in the phase space which contains the invariant sets of interest.
113{
114 /// Returns the space width in the requested direction.
115 double operator [] (int n) const
116 {
117 if ((n < 0) || (n >= spaceDim))
118 throw "Incorrect phase space width requested.";
119 // b^2 - h
120 return 1.1 * (paramRight [0] * paramRight [0] -
121 paramLeft [1]);
122 }
123
124}; /* struct SpaceWidthType */
125
126/// An imitation of an array which returns the width of the rectangular area
127/// in the phase space which contains the invariant sets of interest.
129
130
131// --------------------------------------------------
132// ------------------ refinements -------------------
133// --------------------------------------------------
134
135/// The number of refinements that should be done if a Morse set
136/// with the trivial index is encountered or if the image of a Morse set
137/// sticks out of the rectangular region to which the computations
138/// are restricted. Set to zero for no refinements.
139const int refineDepth = 1;
140
141/// The maximal allowed size of a set of cubes in the phase space
142/// which can be refined at the initial subdivision level.
143/// Set to zero to suppress any refinements.
144const int maxRefineSize0 = 200000;
145
146/// The maximal allowed size of a set of cubes in the phase space
147/// which can be refined at the subsequent subdivision levels.
148/// Set to zero to suppress any refinements.
149const int maxRefineSize1 = 20000;
150
151
152// --------------------------------------------------
153// ------------------- map images -------------------
154// --------------------------------------------------
155
156/// The maximal allowed diameter of the cubical image of a signle box.
157/// This limit is set up in order to prevent a blow-up of the program
158/// in the memory because of accumulating huge images of boxes.
159const int maxImageDiameter = 10000;
160
161/// The maximal allowed volume of the cubical image of a single box.
162/// This limit is set up in order to prevent a blow-up of the program
163/// in the memory because of accumulating huge images of boxes.
164const int maxImageVolume = 100000;
165
166
167// --------------------------------------------------
168// -------------- max index pair size ---------------
169// --------------------------------------------------
170
171/// The maximal allowed size of the index pair. This size is measured
172/// as the total number of cubes in the index pair and its forward image.
173const int maxIndexPairSize = 1200000;
174
175
176// --------------------------------------------------
177// --------------- joining Morse sets ---------------
178// --------------------------------------------------
179
180/// The maximal number of cubes in a trivial Morse set for which an attempt
181/// is made to join this set with another near-by Morse set.
182/// Set to zero to suppress joining.
183const int maxJoinSize = 0;
184
185/// The maximal size of a connecting orbit between two Morse sets
186/// which can be considered for joining.
187const int maxJoinConnection = 1000;
188
189/// The maximal allowed distance between two Morse sets which can be
190/// considered for joining. Note: It doesn't work with space wrapping.
191const int maxJoinDistance = 100;
192
193
194// --------------------------------------------------
195// ----------------- other settings -----------------
196// --------------------------------------------------
197
198/// Should the ordering between the Morse sets be taken into consideration
199/// while determining whether two Morse decompositions
200/// computed for adjacent parameter boxes are in the same class?
201const bool compareMorseOrdering = true;
202
203/// Ignoring the isolation problem while matching Morse decompositions.
204/// If this constant is set to "true" then Morse sets are matched
205/// with each other indepent of whether the Conley index could be computed
206/// for them or not. Otherwise, 'correct' and 'wrong' Morse sets
207/// are matched with their counterparts in the same category only.
209
210/// Ignoring the isolation problem while computing the Conley index.
211/// If the constant is set to "true" then the index pair constructed on the
212/// basis of a combinatorial Morse set with respect to the dynamics
213/// restricted to the rectangular area of interest is also restricted
214/// to that area by means of projecting all the boxes that stick out
215/// of the region onto a single layer of boxes around the boundary.
217
218
219} // namespace difference
220} // namespace custom
221
222
223#endif // _CMGRAPHS_P_H_
224
const SpaceOffsetType spaceOffset
An imitation of an array which returns the offset of the rectangular area in the phase space which co...
Definition: p_differ.h:108
const int paramSelect[paramDim]
The numbers of parameters to subdivide.
Definition: p_differ.h:74
const double paramRight[paramCount]
The right bounds on the parameters: b, h.
Definition: p_differ.h:88
const int refineDepth
The number of refinements that should be done if a Morse set with the trivial index is encountered or...
Definition: p_differ.h:139
const int paramDim
The dimension of the parameter space to iterate.
Definition: p_differ.h:67
const int maxRefineSize0
The maximal allowed size of a set of cubes in the phase space which can be refined at the initial sub...
Definition: p_differ.h:144
const int maxJoinConnection
The maximal size of a connecting orbit between two Morse sets which can be considered for joining.
Definition: p_differ.h:187
const int maxJoinSize
The maximal number of cubes in a trivial Morse set for which an attempt is made to join this set with...
Definition: p_differ.h:183
const bool ignoreIsolationForConleyIndex
Ignoring the isolation problem while computing the Conley index.
Definition: p_differ.h:216
const int maxJoinDistance
The maximal allowed distance between two Morse sets which can be considered for joining.
Definition: p_differ.h:191
const int maxImageVolume
The maximal allowed volume of the cubical image of a single box.
Definition: p_differ.h:164
const int spaceDim
The dimension of the phase space.
Definition: p_differ.h:48
const bool compareMorseOrdering
Should the ordering between the Morse sets be taken into consideration while determining whether two ...
Definition: p_differ.h:201
const double paramLeft[paramCount]
The left bounds on the parameters: b > 1, h < (sqrt(b) - 1)^2.
Definition: p_differ.h:85
const int initialDepth
The initial depth of subdivisions in the phase space.
Definition: p_differ.h:55
const int maxImageDiameter
The maximal allowed diameter of the cubical image of a signle box.
Definition: p_differ.h:159
const bool ignoreIsolationForContinuation
Ignoring the isolation problem while matching Morse decompositions.
Definition: p_differ.h:208
const int paramCount
The number of all the parameters, both varying and fixed.
Definition: p_differ.h:82
const SpaceWidthType spaceWidth
An imitation of an array which returns the width of the rectangular area in the phase space which con...
Definition: p_differ.h:128
const int finalDepth
The final depth of subdivisions in the phase space.
Definition: p_differ.h:58
const int maxIndexPairSize
The maximal allowed size of the index pair.
Definition: p_differ.h:173
const bool spaceWrapping[spaceDim]
Is space wrapping (a.k.a.
Definition: p_differ.h:52
const int maxRefineSize1
The maximal allowed size of a set of cubes in the phase space which can be refined at the subsequent ...
Definition: p_differ.h:149
const short int paramSubdiv[paramDim]
The numbers of subintervals in each direction of the parameter space.
Definition: p_differ.h:71
Customizable settings that are supposed to be modified and/or chosen by the user of the software.
An imitation of an array which returns the offset of the rectangular area in the phase space which co...
Definition: p_differ.h:98
double operator[](int n) const
Returns the space offset in the requested direction.
Definition: p_differ.h:100
An imitation of an array which returns the width of the rectangular area in the phase space which con...
Definition: p_differ.h:113
double operator[](int n) const
Returns the space width in the requested direction.
Definition: p_differ.h:115