]> SALOME platform Git repositories - modules/adao.git/blob - src/daSalome/daYacsSchemaCreator/infos_daComposant.py
Salome HOME
Correcting and extending algorithmic choices for ADAO
[modules/adao.git] / src / daSalome / daYacsSchemaCreator / infos_daComposant.py
1 #-*- coding: utf-8 -*-
2 # Copyright (C) 2010-2011 EDF R&D
3 #
4 # This library is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU Lesser General Public
6 # License as published by the Free Software Foundation; either
7 # version 2.1 of the License.
8 #
9 # This library is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12 # Lesser General Public License for more details.
13 #
14 # You should have received a copy of the GNU Lesser General Public
15 # License along with this library; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
17 #
18 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 #
20 # Author: Andre Ribes, andre.ribes@edf.fr, EDF R&D
21
22
23 # -- Infos pour le parser --
24
25 AnalysisData = {}
26 AnalysisFromList = ["String", "Script"]
27
28 # -- Infos from daCore --
29 AssimData = ["Background", "BackgroundError",
30              "Observation", "ObservationError",
31              "EvolutionModel", "EvolutionError",
32              "ObservationOperator",
33              "AlgorithmParameters"]
34
35 AssimType = {}
36 AssimType["Background"] = ["Vector"]
37 AssimType["BackgroundError"] = ["Matrix"]
38 AssimType["Observation"] = ["Vector"]
39 AssimType["ObservationError"] = ["Matrix"]
40 AssimType["ObservationOperator"] = ["Matrix", "Function"]
41 AssimType["AlgorithmParameters"] = ["Dict"]
42 AssimType["UserDataInit"] = ["Dict"]
43
44 FromNumpyList = {}
45 FromNumpyList["Vector"] = ["String", "Script"]
46 FromNumpyList["Matrix"] = ["String", "Script"]
47 FromNumpyList["Function"] = ["FunctionDict"]
48 FromNumpyList["Dict"] = ["Script"]
49
50 # -- Infos from daAlgorithms --
51 AssimAlgos = [
52     "3DVAR",
53     "Blue",
54     "EnsembleBlue",
55     "KalmanFilter",
56     "LinearLeastSquares",
57     "NonLinearLeastSquares",
58     ]
59
60 AlgoDataRequirements = {}
61 AlgoDataRequirements["3DVAR"] = [
62     "Background", "BackgroundError",
63     "Observation", "ObservationError",
64     "ObservationOperator",
65     ]
66 AlgoDataRequirements["Blue"] = [
67     "Background", "BackgroundError",
68     "Observation", "ObservationError",
69     "ObservationOperator",
70     ]
71 AlgoDataRequirements["EnsembleBlue"] = [
72     "Background", "BackgroundError",
73     "Observation", "ObservationError",
74     "ObservationOperator",
75     ]
76 AlgoDataRequirements["KalmanFilter"] = [
77     "Background", "BackgroundError",
78     "Observation", "ObservationError",
79     "EvolutionModel", "EvolutionError",
80     "ObservationOperator",
81     ]
82 AlgoDataRequirements["LinearLeastSquares"] = [
83     "Observation", "ObservationError",
84     "ObservationOperator",
85     ]
86 AlgoDataRequirements["NonLinearLeastSquares"] = [
87     "Observation", "ObservationError",
88     "ObservationOperator",
89     ]
90
91 AlgoType = {}
92 AlgoType["3DVAR"] = "Optim"
93 AlgoType["Blue"] = "Optim"
94 AlgoType["EnsembleBlue"] = "Optim"
95 AlgoType["KalmanFilter"] = "Optim"
96 AlgoType["LinearLeastSquares"] = "Optim"
97 AlgoType["NonLinearLeastSquares"] = "Optim"
98 #AlgoType["Blue"] = "Direct"
99
100
101 # Variables qui sont partages avec le generateur de
102 # catalogue Eficas
103
104 # Basic data types
105 BasicDataInputs = ["String", "Script", "FunctionDict"]
106
107 # Data input dict
108 DataTypeDict = {}
109 DataTypeDict["Vector"]   = ["String", "Script"]
110 DataTypeDict["Matrix"]   = ["String", "Script"]
111 DataTypeDict["Function"] = ["FunctionDict"]
112 DataTypeDict["Dict"]     = ["String", "Script"]
113
114 DataTypeDefaultDict = {}
115 DataTypeDefaultDict["Vector"]   = "Script"
116 DataTypeDefaultDict["Matrix"]   = "Script"
117 DataTypeDefaultDict["Function"] = "FunctionDict"
118 DataTypeDefaultDict["Dict"]     = "Script"
119
120 # Assimilation data input
121 AssimDataDict = {}
122 AssimDataDict["Background"] = ["Vector"]
123 AssimDataDict["BackgroundError"] = ["Matrix"]
124 AssimDataDict["Observation"] = ["Vector"]
125 AssimDataDict["ObservationError"] = ["Matrix"]
126 AssimDataDict["ObservationOperator"] = ["Matrix", "Function"]
127 AssimDataDict["AlgorithmParameters"] = ["Dict"]
128 AssimDataDict["UserDataInit"] = ["Dict"]
129
130 AssimDataDefaultDict = {}
131 AssimDataDefaultDict["Background"]          = "Vector"
132 AssimDataDefaultDict["BackgroundError"]     = "Matrix"
133 AssimDataDefaultDict["Observation"]         = "Vector"
134 AssimDataDefaultDict["ObservationError"]    = "Matrix"
135 AssimDataDefaultDict["ObservationOperator"] = "Function"
136 AssimDataDefaultDict["AlgorithmParameters"] = "Dict"
137 AssimDataDefaultDict["UserDataInit"]        = "Dict"
138
139 # Assimilation optional nodes
140 OptDict = {}
141 OptDict["UserPostAnalysis"]   = ["String", "Script"]
142 OptDefaultDict = {}
143 OptDefaultDict["UserPostAnalysis"]   = "Script"
144
145 # Observers
146 ObserversList = [
147     "Analysis",
148     "CurrentState",
149     "Innovation",
150     "OMA",
151     "OMB",
152     "BMA",
153     "CostFunctionJ",
154     "CostFunctionJb",
155     "CostFunctionJo",
156     "GradientOfCostFunctionJ",
157     "GradientOfCostFunctionJb",
158     "GradientOfCostFunctionJo",
159     "SigmaObs2",
160     "SigmaBck2",
161     "APosterioriCovariance",
162     ]