From af888d95b16be3b149b4410ec2d1b19a1d788079 Mon Sep 17 00:00:00 2001 From: Pascale Noyret Date: Wed, 2 May 2012 08:43:54 +0000 Subject: [PATCH] Ajout provisoire des catalogues de la 2012.1 --- MAP/CMakeLists.txt | 6 ++++++ MAP/cata_c_image_3d_altitude_thickness.py | 21 +++++++++++++++++++++ MAP/cata_c_post_table_fft.py | 22 ++++++++++++++++++++++ MAP/cata_c_pre_interface_mesh.py | 19 +++++++++++++++++++ MAP/cata_c_solver_aster.py | 15 +++++++++++++++ MAP/cata_c_transverse_empty_python.py | 17 +++++++++++++++++ MAP/cata_s_scc_3d_analysis.py | 19 +++++++++++++++++++ MAP/cata_solver1.py | 16 ++++++++++++++++ MAP/prefs_MAP.py | 13 +++++++++++-- 9 files changed, 146 insertions(+), 2 deletions(-) create mode 100644 MAP/cata_c_image_3d_altitude_thickness.py create mode 100644 MAP/cata_c_post_table_fft.py create mode 100644 MAP/cata_c_pre_interface_mesh.py create mode 100644 MAP/cata_c_solver_aster.py create mode 100644 MAP/cata_c_transverse_empty_python.py create mode 100644 MAP/cata_s_scc_3d_analysis.py create mode 100644 MAP/cata_solver1.py diff --git a/MAP/CMakeLists.txt b/MAP/CMakeLists.txt index 5bfae6d1..77cf99ae 100644 --- a/MAP/CMakeLists.txt +++ b/MAP/CMakeLists.txt @@ -25,6 +25,12 @@ install ( FILES qtEficas_map.py style.py prefs_MAP.py configuration_MAP.py + cata_c_pre_interface_mesh.py + cata_s_scc_3d_analysis.py + cata_c_image_3d_altitude_thickness.py + cata_c_solver_aster.py + cata_c_post_table_fft.py + cata_c_transverse_empty_python.py DESTINATION ${CMAKE_INSTALL_PREFIX}/MAP ) diff --git a/MAP/cata_c_image_3d_altitude_thickness.py b/MAP/cata_c_image_3d_altitude_thickness.py new file mode 100644 index 00000000..7f4ba6c2 --- /dev/null +++ b/MAP/cata_c_image_3d_altitude_thickness.py @@ -0,0 +1,21 @@ + +from Accas import * + +JdC = JDC_CATA (code = 'MAP', + execmodul = None, + ) +C_IMAGE_3D_ALTITUDE_THICKNESS_DATA=PROC(nom='C_IMAGE_3D_ALTITUDE_THICKNESS_DATA',op=None, +direction=SIMP(typ='I',fr='',ang='The direction type',statut='o',docu='',into=None,min=1,max=1,val_min='**',val_max='**',defaut=None), +alt_min=SIMP(typ='I',fr='',ang='The minimum altitude',statut='o',docu='',into=None,min=1,max=1,val_min='**',val_max='**',defaut=None), +calculation=SIMP(typ='TXM',fr='',ang='The calculation type',statut='o',docu='',into=None,min=1,max=1,val_min='**',val_max='**',defaut=None), +alt_max=SIMP(typ='I',fr='',ang='The maximum altitude',statut='o',docu='',into=None,min=1,max=1,val_min='**',val_max='**',defaut=None), +output_grid_field_csv_metadata=SIMP(typ='TXM',fr='',ang='CVS formated grid metadata',statut='o',docu='',into=None,min=1,max=1,val_min='**',val_max='**',defaut=None), +input_grid_field_raw_metadata=SIMP(typ='TXM',fr='',ang='field metadata file',statut='o',docu='',into=None,min=1,max=1,val_min='**',val_max='**',defaut=None), +output_grid_field_csv=SIMP(typ='TXM',fr='',ang='CVS formated grid',statut='o',docu='',into=None,min=1,max=1,val_min='**',val_max='**',defaut=None), +input_grid_field_raw=SIMP(typ='TXM',fr='',ang='field data file',statut='o',docu='',into=None,min=1,max=1,val_min='**',val_max='**',defaut=None), +) + +# This text should be dump into a file named 'map_cata.py' to be +# copied in the eficas directory $EFICAS_ROOT/MAP/. +# Then run 'qtEficas_map.py -s maquettemap'. The key name +# maquettemap is the name defined in prefs_MAP.py diff --git a/MAP/cata_c_post_table_fft.py b/MAP/cata_c_post_table_fft.py new file mode 100644 index 00000000..476307cf --- /dev/null +++ b/MAP/cata_c_post_table_fft.py @@ -0,0 +1,22 @@ + +from Accas import * + +JdC = JDC_CATA (code = 'MAP', + execmodul = None, + ) +C_POST_TABLE_FFT_DATA=PROC(nom='C_POST_TABLE_FFT_DATA',op=None, +output_spectr_y_png_file_name=SIMP(typ='TXM',fr='',ang='NO COMMENT',statut='o',docu='',into=None,min=1,max=1,val_min='**',val_max='**',defaut=None), +input_surface_grid_field_csv_metadata_file_name=SIMP(typ='TXM',fr='',ang='NO COMMENT',statut='o',docu='',into=None,min=1,max=1,val_min='**',val_max='**',defaut=None), +output_spectr_x_png_file_name=SIMP(typ='TXM',fr='',ang='NO COMMENT',statut='o',docu='',into=None,min=1,max=1,val_min='**',val_max='**',defaut=None), +show_image=SIMP(typ='BOOL',fr='',ang='NO COMMENT',statut='o',docu='',into=None,min=1,max=1,val_min='**',val_max='**',defaut=True), +output_surface_grid_field_png_file_name=SIMP(typ='TXM',fr='',ang='NO COMMENT',statut='o',docu='',into=None,min=1,max=1,val_min='**',val_max='**',defaut=None), +output_surface_properties_file_name=SIMP(typ='TXM',fr='',ang='NO COMMENT',statut='o',docu='',into=None,min=1,max=1,val_min='**',val_max='**',defaut=None), +show_spectr=SIMP(typ='BOOL',fr='',ang='NO COMMENT',statut='o',docu='',into=None,min=1,max=1,val_min='**',val_max='**',defaut=True), +input_surface_grid_field_csv_file_name=SIMP(typ='TXM',fr='',ang='NO COMMENT',statut='o',docu='',into=None,min=1,max=1,val_min='**',val_max='**',defaut=None), +interactive=SIMP(typ='BOOL',fr='',ang='NO COMMENT',statut='o',docu='',into=None,min=1,max=1,val_min='**',val_max='**',defaut=False), +) + +# This text should be dump into a file named 'map_cata.py' to be +# copied in the eficas directory $EFICAS_ROOT/MAP/. +# Then run 'qtEficas_map.py -s maquettemap'. The key name +# maquettemap is the name defined in prefs_MAP.py diff --git a/MAP/cata_c_pre_interface_mesh.py b/MAP/cata_c_pre_interface_mesh.py new file mode 100644 index 00000000..5fe7bb52 --- /dev/null +++ b/MAP/cata_c_pre_interface_mesh.py @@ -0,0 +1,19 @@ + +from Accas import * + +JdC = JDC_CATA (code = 'MAP', + execmodul = None, + ) +C_PRE_INTERFACE_MESH_DATA=PROC(nom='C_PRE_INTERFACE_MESH_DATA',op=None, +surface_type=SIMP(typ='TXM',fr='',ang='NO COMMENT',statut='o',docu='',into=None,min=1,max=1,val_min='**',val_max='**',defaut=None), +output_surf=SIMP(typ='TXM',fr='',ang='NO COMMENT',statut='o',docu='',into=None,min=1,max=1,val_min='**',val_max='**',defaut=None), +nb_segments=SIMP(typ='I',fr='',ang='NO COMMENT',statut='o',docu='',into=None,min=1,max=1,val_min='**',val_max='**',defaut=None), +input_surface_field_csv_file_name=SIMP(typ='TXM',fr='',ang='NO COMMENT',statut='o',docu='',into=None,min=1,max=1,val_min='**',val_max='**',defaut=None), +output_mesh=SIMP(typ='TXM',fr='',ang='NO COMMENT',statut='o',docu='',into=None,min=1,max=1,val_min='**',val_max='**',defaut=None), +input_surface_field_csv_metadata_file_name=SIMP(typ='TXM',fr='',ang='NO COMMENT',statut='o',docu='',into=None,min=1,max=1,val_min='**',val_max='**',defaut=None), +) + +# This text should be dump into a file named 'map_cata.py' to be +# copied in the eficas directory $EFICAS_ROOT/MAP/. +# Then run 'qtEficas_map.py -s maquettemap'. The key name +# maquettemap is the name defined in prefs_MAP.py diff --git a/MAP/cata_c_solver_aster.py b/MAP/cata_c_solver_aster.py new file mode 100644 index 00000000..de8e651c --- /dev/null +++ b/MAP/cata_c_solver_aster.py @@ -0,0 +1,15 @@ + +from Accas import * + +JdC = JDC_CATA (code = 'MAP', + execmodul = None, + ) +C_SOLVER_ASTER_DATA=PROC(nom='C_SOLVER_ASTER_DATA',op=None, +meshfile=SIMP(typ='TXM',fr='',ang='Geometry modelisation',statut='o',docu='',into=None,min=1,max=1,val_min='**',val_max='**',defaut=None), +commfile=SIMP(typ='TXM',fr='',ang='Code_Aster modelisation',statut='o',docu='',into=None,min=1,max=1,val_min='**',val_max='**',defaut=None), +) + +# This text should be dump into a file named 'map_cata.py' to be +# copied in the eficas directory $EFICAS_ROOT/MAP/. +# Then run 'qtEficas_map.py -s maquettemap'. The key name +# maquettemap is the name defined in prefs_MAP.py diff --git a/MAP/cata_c_transverse_empty_python.py b/MAP/cata_c_transverse_empty_python.py new file mode 100644 index 00000000..e67e0885 --- /dev/null +++ b/MAP/cata_c_transverse_empty_python.py @@ -0,0 +1,17 @@ + +from Accas import * + +JdC = JDC_CATA (code = 'MAP', + execmodul = None, + ) +C_TRANSVERSE_EMPTY_PYTHON_DATA=PROC(nom='C_TRANSVERSE_EMPTY_PYTHON_DATA',op=None, +file_output=SIMP(typ='TXM',fr='',ang='name of the output file of the component',statut='o',docu='',into=None,min=1,max=1,val_min='**',val_max='**',defaut=None), +an_integer=SIMP(typ='I',fr='',ang='number of lines in the output file',statut='o',docu='',into=None,min=1,max=1,val_min='**',val_max='**',defaut=None), +a_float=SIMP(typ='R',fr='',ang='simply print in verbose mode',statut='o',docu='',into=None,min=1,max=1,val_min='**',val_max='**',defaut=None), +a_string=SIMP(typ='TXM',fr='',ang='simply print in verbose mode',statut='o',docu='',into=None,min=1,max=1,val_min='**',val_max='**',defaut=None), +) + +# This text should be dump into a file named 'map_cata.py' to be +# copied in the eficas directory $EFICAS_ROOT/MAP/. +# Then run 'qtEficas_map.py -s maquettemap'. The key name +# maquettemap is the name defined in prefs_MAP.py diff --git a/MAP/cata_s_scc_3d_analysis.py b/MAP/cata_s_scc_3d_analysis.py new file mode 100644 index 00000000..e8247220 --- /dev/null +++ b/MAP/cata_s_scc_3d_analysis.py @@ -0,0 +1,19 @@ + +from Accas import * + +JdC = JDC_CATA (code = 'MAP', + execmodul = None, + ) +S_SCC_3D_ANALYSIS_DATA=PROC(nom='S_SCC_3D_ANALYSIS_DATA',op=None, +direction=SIMP(typ='I',fr='',ang='The direction type',statut='o',docu='',into=None,min=1,max=1,val_min='**',val_max='**',defaut=None), +alt_min=SIMP(typ='I',fr='',ang='The minimum altitude',statut='o',docu='',into=None,min=1,max=1,val_min='**',val_max='**',defaut=None), +calculation=SIMP(typ='TXM',fr='',ang='The calculation type',statut='o',docu='',into=None,min=1,max=1,val_min='**',val_max='**',defaut=None), +alt_max=SIMP(typ='I',fr='',ang='The maximum altitude',statut='o',docu='',into=None,min=1,max=1,val_min='**',val_max='**',defaut=None), +input_grid_field_raw_metadata=SIMP(typ='TXM',fr='',ang='field metadata file',statut='o',docu='',into=None,min=1,max=1,val_min='**',val_max='**',defaut=None), +input_grid_field_raw=SIMP(typ='TXM',fr='',ang='field data file',statut='o',docu='',into=None,min=1,max=1,val_min='**',val_max='**',defaut=None), +) + +# This text should be dump into a file named 'map_cata.py' to be +# copied in the eficas directory $EFICAS_ROOT/MAP/. +# Then run 'qtEficas_map.py -s maquettemap'. The key name +# maquettemap is the name defined in prefs_MAP.py diff --git a/MAP/cata_solver1.py b/MAP/cata_solver1.py new file mode 100644 index 00000000..a5b7644d --- /dev/null +++ b/MAP/cata_solver1.py @@ -0,0 +1,16 @@ + +from Accas import * + +JdC = JDC_CATA (code = 'MAP', + execmodul = None, + ) +SOLVER1_DATA=PROC(nom='SOLVER1_DATA',op=None, +e1=SIMP(typ='R',fr='',ang='The first data',statut='o',docu='',into=None,min=1,max=1,val_min='**',val_max='**',defaut=None), +e3=SIMP(typ='R',fr='',ang='The second data',statut='o',docu='',into=None,min=1,max=1,val_min='**',val_max='**',defaut=None), +e2=SIMP(typ='R',fr='',ang='The second data',statut='o',docu='',into=None,min=1,max=1,val_min='**',val_max='**',defaut=None), +) + +# This text should be dump into a file named 'map_cata.py' to be +# copied in the eficas directory $EFICAS_ROOT/MAP/. +# Then run 'qtEficas_map.py -s maquettemap'. The key name +# maquettemap is the name defined in prefs_MAP.py diff --git a/MAP/prefs_MAP.py b/MAP/prefs_MAP.py index baec5839..430d763b 100644 --- a/MAP/prefs_MAP.py +++ b/MAP/prefs_MAP.py @@ -40,7 +40,16 @@ path_doc = os.path.join(repIni,'Doc') exec_acrobat = "/usr/bin/xpdf" savedir = os.environ['HOME'] +rep_cata=os.path.dirname(os.path.abspath(__file__)) + +catalogues=( + ('MAP','Solver',os.path.join(rep_cata,'cata_solver1.py'),'solver1'), + ('MAP','Test',os.path.join(rep_cata,'cata_s_test03.py'),'s_test03'), + ('MAP','Exemple python',os.path.join(rep_cata,'cata_c_transverse_empty_python.py'),'c_transverse_empty_python'), + ('MAP','Image 3D',os.path.join(rep_cata,'cata_c_image_3d_altitude_thickness.py'),'c_image_3d_altitude_thickness'), + ('MAP','Table FFT',os.path.join(rep_cata,'cata_c_post_table_fft.py'), 'c_post_table_fft'), + ('MAP','PRE Mesh',os.path.join(rep_cata,'cata_c_pre_interface_mesh.py'), 'c_pre_interface_mesh'), + ('MAP','Analyse 3D',os.path.join(rep_cata,'cata_s_scc_3d_analysis.py'), 's_scc_3d_analysis'), +) -OpenTURNS_path='/local/noyret/Salome/V6_main/tools/install/Openturns_tool-0150-py266-r272-ro144-rp208-sw204-xm278-la331-gr2263-dox173_patch-tbb30/lib/python2.6/site-packages' -sys.path[:0]=[repIni,INSTALLDIR, OpenTURNS_path] -- 2.39.2