user:code:pelicans [Promethee]

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

user:code:pelicans [2015/10/06 07:58] (current)
Line 1: Line 1:
 +====== PELICANS C++ application framework for PDE ======
  
 +  * project page: [[https://gforge.irsn.fr/gf/project/pelicans/]]
 +
 +===== Wrapping =====
 +
 +  * input: ".pel" file
 +  * input parameters syntax
 +    * variable: <code>@(variable_name)</code>
 +    * formula: <code>![formula_expression]</code>
 +  * output: TIC output
 +  * running progress: last line of standard stream
 +
 +===== Example =====
 +
 +  * input file:<code PELICANS>MODULE PEL_Application
 +   concrete_name="AP_TutorialFV"
 +   MODULE PDE_DomainAndFields 
 +      verbose_level = 1
 +      nb_space_dimensions = 2
 +      type = "finite_element"
 +      MODULE GE_Meshing
 +         concrete_name = "GE_BoxWithBoxes"         
 +         vertices_coordinate_0 = regular_vector( 0.0, 10, 0.3 )
 +         vertices_coordinate_1 = regular_vector( 0.0, 10, 0.4 )
 +         mesh_polyhedron = < "GE_Segment" "GE_Rectangle" >         
 +      END MODULE GE_Meshing
 +      MODULE interior_fields    
 +         MODULE temperature
 +            name = "temperature"
 +            nb_components = 1
 +            element_name = "PDE_2D_Q0_1node"
 +            storage_depth = 1
 +            MODULE DOFs_values
 +               type = "uniformly_defined"
 +               value = < 0. >
 +            END MODULE DOFs_values
 +         END MODULE temperature
 +      END MODULE interior_fields
 +      MODULE boundary_conditions
 +         MODULE xxx
 +            field = "temperature"
 +            color = "left"
 +            type = "imposed_flux"
 +            flux_value = 50.E+3
 +         END MODULE xxx
 +         MODULE yyy
 +            field = "temperature"
 +            color = "top"
 +            type = "Dirichlet"
 +            value = 100.
 +         END MODULE yyy
 +      END MODULE boundary_conditions
 +      MODULE PDE_ResultSaver
 +         writers = < "PEL_TICwriter" "PEL_PelWriter" >
 +         writing_mode = "text"
 +         files_basename = "save"
 +         MODULE temperature
 +            where_to_save = "at_cell_centers"
 +            entry_name = "T"
 +            field = "temperature"
 +         END MODULE temperature
 +      END MODULE PDE_ResultSaver
 +   END MODULE PDE_DomainAndFields
 +   MODULE AP_TutorialFV
 +      conductivity = 236.
 +      MODULE LA_Matrix
 +         concrete_name = "LA_PelMatrix"
 +      END MODULE LA_Matrix
 +      MODULE LA_Solver
 +         concrete_name = "LA_PreconditionedSolver"
 +         MODULE LA_IterativeSolver
 +            concrete_name = "LA_CG_IS"
 +            verbose = false
 +            nb_iterations_max = 2000
 +            MODULE LA_ConvergenceTest
 +               concrete_name = "LA_DefaultConvergenceTest"
 +               relative_tolerance = 1.e-7
 +               absolute_tolerance = 1.e-50
 +            END MODULE LA_ConvergenceTest
 +         END MODULE LA_IterativeSolver
 +         MODULE LA_Preconditioner
 +            concrete_name = "LA_Jacobi_PC"
 +            smallest_inverted_item = 1.0e-20
 +         END MODULE LA_Preconditioner
 +      END MODULE LA_Solver
 +   END MODULE AP_TutorialFV
 +END MODULE PEL_Application
 +</code>
 +  * output: T, XNOD, YNOD, ZNOD
 +
 +===== Installation =====
 +
 +  * user side: 
 +    * unzip {{page>:download:code:pelicans}} in Promethee installation directory,
 +    * restart Promethee GUI.
 +  * server side: 
 +    * unzip {{page>:download:code:pelicans}} in Promethee installation directory,
 +    * add <code xml><CODE name="PELICANS" cplugin="file:./plugins/calc/PELICANS.cplugin.jar" command="/opt/Promethee/scripts/PELICANS" /></code> line in calculator.xml file inside "<calculator>" tag,
 +    * wait for configuration refresh (5 s. if calculator is free).
© IRSN - All right reserved - Legal information