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