]> SALOME platform Git repositories - modules/adao.git/blob - src/daSalome/daYacsSchemaCreator/infos_daComposant.py
Salome HOME
44ee9c10154cbd1ad22fe58b1eef562328bde993
[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              "ObservationOperator",
32              "EvolutionModel", "EvolutionError",
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["EvolutionModel"] = ["Matrix", "Function"]
42 AssimType["EvolutionError"] = ["Matrix"]
43 AssimType["AlgorithmParameters"] = ["Dict"]
44 AssimType["UserDataInit"] = ["Dict"]
45
46 FromNumpyList = {}
47 FromNumpyList["Vector"]   = ["String", "Script"]
48 FromNumpyList["Matrix"]   = ["String", "Script"]
49 FromNumpyList["Function"] = ["FunctionDict"]
50 FromNumpyList["Dict"]     = ["Script"]
51
52 # -- Infos from daAlgorithms --
53 AssimAlgos = [
54     "3DVAR",
55     "Blue",
56     "EnsembleBlue",
57     "KalmanFilter",
58     "LinearLeastSquares",
59     "NonLinearLeastSquares",
60     ]
61
62 AlgoDataRequirements = {}
63 AlgoDataRequirements["3DVAR"] = [
64     "Background", "BackgroundError",
65     "Observation", "ObservationError",
66     "ObservationOperator",
67     ]
68 AlgoDataRequirements["Blue"] = [
69     "Background", "BackgroundError",
70     "Observation", "ObservationError",
71     "ObservationOperator",
72     ]
73 AlgoDataRequirements["EnsembleBlue"] = [
74     "Background", "BackgroundError",
75     "Observation", "ObservationError",
76     "ObservationOperator",
77     ]
78 AlgoDataRequirements["KalmanFilter"] = [
79     "Background", "BackgroundError",
80     "Observation", "ObservationError",
81     "EvolutionModel", "EvolutionError",
82     "ObservationOperator",
83     ]
84 AlgoDataRequirements["LinearLeastSquares"] = [
85     "Observation", "ObservationError",
86     "ObservationOperator",
87     ]
88 AlgoDataRequirements["NonLinearLeastSquares"] = [
89     "Observation", "ObservationError",
90     "ObservationOperator",
91     ]
92
93 AlgoType = {}
94 AlgoType["3DVAR"] = "Optim"
95 AlgoType["Blue"] = "Optim"
96 AlgoType["EnsembleBlue"] = "Optim"
97 AlgoType["KalmanFilter"] = "Optim"
98 AlgoType["LinearLeastSquares"] = "Optim"
99 AlgoType["NonLinearLeastSquares"] = "Optim"
100 #AlgoType["Blue"] = "Direct"
101
102
103 # Variables qui sont partages avec le generateur de
104 # catalogue Eficas
105
106 # Basic data types
107 BasicDataInputs = ["String", "Script", "FunctionDict"]
108
109 # Data input dict
110 DataTypeDict = {}
111 DataTypeDict["Vector"]   = ["String", "Script"]
112 DataTypeDict["Matrix"]   = ["String", "Script"]
113 DataTypeDict["Function"] = ["FunctionDict"]
114 DataTypeDict["Dict"]     = ["Script"]
115
116 DataTypeDefaultDict = {}
117 DataTypeDefaultDict["Vector"]   = "Script"
118 DataTypeDefaultDict["Matrix"]   = "Script"
119 DataTypeDefaultDict["Function"] = "FunctionDict"
120 DataTypeDefaultDict["Dict"]     = "Script"
121
122 # Assimilation data input
123 AssimDataDict = {}
124 AssimDataDict["Background"] = ["Vector"]
125 AssimDataDict["BackgroundError"] = ["Matrix"]
126 AssimDataDict["Observation"] = ["Vector"]
127 AssimDataDict["ObservationError"] = ["Matrix"]
128 AssimDataDict["ObservationOperator"] = ["Matrix", "Function"]
129 AssimDataDict["EvolutionModel"] = ["Matrix", "Function"]
130 AssimDataDict["EvolutionError"] = ["Matrix"]
131 AssimDataDict["AlgorithmParameters"] = ["Dict"]
132 AssimDataDict["UserDataInit"] = ["Dict"]
133
134 AssimDataDefaultDict = {}
135 AssimDataDefaultDict["Background"]          = "Vector"
136 AssimDataDefaultDict["BackgroundError"]     = "Matrix"
137 AssimDataDefaultDict["Observation"]         = "Vector"
138 AssimDataDefaultDict["ObservationError"]    = "Matrix"
139 AssimDataDefaultDict["ObservationOperator"] = "Function"
140 AssimDataDefaultDict["EvolutionModel"]      = "Function"
141 AssimDataDefaultDict["EvolutionError"]      = "Matrix"
142 AssimDataDefaultDict["AlgorithmParameters"] = "Dict"
143 AssimDataDefaultDict["UserDataInit"]        = "Dict"
144
145 # Assimilation optional nodes
146 OptDict = {}
147 OptDict["UserPostAnalysis"]   = ["String", "Script"]
148 OptDefaultDict = {}
149 OptDefaultDict["UserPostAnalysis"]   = "Script"
150
151 # Observers
152 ObserversList = [
153     "Analysis",
154     "CurrentState",
155     "Innovation",
156     "OMA",
157     "OMB",
158     "BMA",
159     "CostFunctionJ",
160     "CostFunctionJb",
161     "CostFunctionJo",
162     "GradientOfCostFunctionJ",
163     "GradientOfCostFunctionJb",
164     "GradientOfCostFunctionJo",
165     "SigmaObs2",
166     "SigmaBck2",
167     "APosterioriCovariance",
168     ]