Skip to content
Snippets Groups Projects
Commit 03907334 authored by Stefan Girke's avatar Stefan Girke
Browse files

[cmake] use parameter.in for cmake build instead of parameter file

parent fd162725
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@ set(GRIDDIM 2)
set(DIMRANGE 1)
set(FLUX 1) #2
configure_file(parameter ${CMAKE_CURRENT_BINARY_DIR}/parameter COPYONLY)
configure_file(parameter.in ${CMAKE_CURRENT_BINARY_DIR}/parameter)
add_definitions( "-D${GRIDTYPE}" )
add_definitions( "-DGRIDDIM=${GRIDDIM}" )
......
# DATA WRITER
#------------
fem.prefix: ${CMAKE_CURRENT_SOURCE_DIR}/data # specify directory for data output (is created if not exists)
fem.io.datafileprefix: heat # prefix data data files
fem.io.savestep: 0.1 # save data every time interval
fem.io.savecount: -1 # save every i-th step
# GRID SOLUTION
#--------------
gridsol.savestep: 0.01
gridsol.firstwrite: 0.1
gridsol.filename: heat-checkpoint
# GENERAL
#--------
paramfile: ${CMAKE_CURRENT_SOURCE_DIR}/../parameter/paramBase
# PROBLEM SETUP
#--------------
# problem: heat, quasi, plaplace
#advdiff.problem: deformational
advdiff.problem: pulse
femhowto.endTime: 1.0
femhowto.diffusionTimeStep: 1
femhowto.epsilon: 0.0
femhowto.plaplace: 3.0
femhowto.xvelocity: 1. # the only advection part for the linear heat eqn
femhowto.yvelocity: 3. # the only advection part for the linear heat eqn
femhowto.zvelocity: 0. # the only advection part for the linear heat eqn
# DOMAIN
#-------
fem.io.macroGridFile_1d: ${CMAKE_CURRENT_SOURCE_DIR}/../grids/unitcube1.dgf
fem.io.macroGridFile_2d: ${CMAKE_CURRENT_SOURCE_DIR}/../grids/unitcube2.dgf
fem.io.macroGridFile_3d: ${CMAKE_CURRENT_SOURCE_DIR}/../grids/unitcube3.dgf
# SOLVER
#-------
dgdiffusionflux.upwind: -1 -0.001
paramfile: ${CMAKE_CURRENT_SOURCE_DIR}/../parameter/paramSolver
femhowto.maxTimeStep: 0.5
......@@ -10,7 +10,7 @@ set(POLORDER 2)
set(DIMRANGE 5)
set(USE_SIONLIB 0)
configure_file(parameter ${CMAKE_CURRENT_BINARY_DIR}/parameter COPYONLY)
configure_file(parameter.in ${CMAKE_CURRENT_BINARY_DIR}/parameter)
add_definitions( "-D${GRIDTYPE}" )
add_definitions( "-DGRIDDIM=${GRIDDIM}" )
......
femhowto.verboserank: 0
femhowto.verbose: 1
# macro grid file
fem.io.macroGridFile: ${CMAKE_CURRENT_SOURCE_DIR}/../grids/unitcube2.dgf
# macro grid file
fem.io.macroGridFile_3d: ${CMAKE_CURRENT_SOURCE_DIR}/../grids/unitcube3.dgf
# if false no discrete function data is written (for debugging)
fem.io.writedata: true
#fem.io.checkpointrestartfile: ${CMAKE_CURRENT_SOURCE_DIR}/checkpoint
# number of EOC steps (only 1 for checkpointing)
femhowto.eocSteps: 1
femhowto.endTime: 1.0
femhowto.odesolver: explicit
femhowto.diffusionTimeStep: 1
femhowto.epsilon: 2.
femhowto.penalty: 1.
fem.timeprovider.factor: 1.
fem.io.savestep: 0.1
fem.io.sionlib.numfiles: 1
fem.io.sionlib.blocksize: 128
#number of global refinements before start of simulation
femhowto.startLevel: 2
# parameters from time dependent problems
femhowto.startTime: 0
femhowto.endTime: 0.4
femhowto.maxTimeStep: 0.1
femhowto.printCount: 1
# SaveStep (write data every `saveStep' time period, <=0 deactivates)
fem.io.savestep: 0.1
# SaveCount (write daa every saveCount time steps, <=0 deactivates)
fem.io.savecount: 0
# toggle verbosity of on process (-1: off, p: process p is verbose, in general 0 is a good choice)
fem.verboserank: 0
#number of global refinements before start of simulation
fem.adaptation.coarsestLevel: 2
fem.adaptation.finestLevel: 2
# number of EOC steps
femhowto.eocSteps: 4
# specify directory for data output (is created if not exists)
fem.prefix: ${CMAKE_CURRENT_SOURCE_DIR}/data
# prefix data data files
fem.io.datafileprefix: solution
# save data every time interval
fem.io.savestep: 0.1
# save every i-th step
fem.io.savecount: 1
# output format: binary | vtk-cell | vtk-vertex (projected in DG case) | none
fem.io.outputformat: binary
# toggle grape display (0 = off | 1 = on)
fem.io.grapedisplay: 0
# write checkpoint every 'checkpointstep' timestep
fem.io.checkpointstep: 7
# write 'checkpointmax' number of different check points
fem.io.checkpointmax: 8
......@@ -11,7 +11,7 @@ set(POLORDER 2)
set(FLUX 1)
set(DIFFFLUXTYPE PRIMALDG)
configure_file(parameter ${CMAKE_CURRENT_BINARY_DIR}/parameter COPYONLY)
configure_file(parameter.in ${CMAKE_CURRENT_BINARY_DIR}/parameter)
add_definitions( "-D${GRIDTYPE}" )
add_definitions( "-DGRIDDIM=${GRIDDIM}" )
......
# PROBLEM SELECTION
#------------------
# possible: "sod" , "withman", "withmansmooth", "smooth1d" , "ffs" , "diffraction" , "shockbubble"
euler.problem: sod
# euler.problemflag: 0
# euler.riemanndata: [1., -1., 1., 1., 1., 1.]
# LIMITER SETTINGS
#-----------------
# 0 = only dg solution | 1 = only reconstruction | 2 = both
femdg.limiter.admissiblefunctions: 1
# tolerance for shock indicator
femdg.limiter.tolerance: 1
# threshold for avoiding over-excessive limitation
femdg.limiter.limiteps: 1e-8
# add indicator to outputvariables
femdg.limiter.indicatoroutput: true
# DATA WRITER
#------------
fem.io.path: ${CMAKE_CURRENT_SOURCE_DIR}/data/euler
fem.io.datafileprefix: RC
fem.io.savestep: 0.01 # SaveStep (write data every `saveStep' time period, <=0 deactivates)
fem.io.savecount: -1 # SaveCount (write data every saveCount time steps, <=0 deactivates)
# GRID SOLUTION
#--------------
gridsol.savestep: 0.5
gridsol.firstwrite: 0.5
gridsol.filename: straka-checkpoint
# GENERAL
#--------
paramfile: ${CMAKE_CURRENT_SOURCE_DIR}/../parameter/paramBase
femhowto.eocSteps: 3
problem.verboserank: 0
# PROBLEM SETUP
#--------------
paramfile: ${CMAKE_CURRENT_SOURCE_DIR}/../parameter/paramPhysicalConstants
g: 1. # gravity force [m/ss]
femhowto.startTime: 0.
femhowto.endTime: 0.15
hSpeed0: 1. # x-axis speed [m/s]
vSpeed0: 1.25 # z-axis speed [m/s]
p0: 1. # surface pressure [Pa]
N: 0.01 # Brunt-Vaisala frequency
Re: 1. # Reynold's number
Pr: 1. # Prandtl's number
rho_a: 1.
rho_b: 0.05
delta_T: -15 # temperature perturbation peak [K]
x_c: 0.25 # x-center of perturbation ball
y_c: 0.25 # y-center of perturbation ball
z_c: 0.25 # z-center of perturbation ball
r: 0.25 # radius of perturbation ball
# DOMAIN SETUP
#-------------
fem.io.macroGridFile_1d: ${CMAKE_CURRENT_SOURCE_DIR}/../grids/unitcube1.dgf
#fem.io.macroGridFile_2d: ${CMAKE_CURRENT_SOURCE_DIR}/../grids/unitcube2.dgf
fem.io.macroGridFile_2d: ${CMAKE_CURRENT_SOURCE_DIR}/../grids/grid2d_str1d.dgf
fem.io.macroGridFile_3d: ${CMAKE_CURRENT_SOURCE_DIR}/../grids/unitcube3.dgf
# SOLVER CONFIGURATION
#---------------------
paramfile: ${CMAKE_CURRENT_SOURCE_DIR}/../parameter/paramSolver
......@@ -13,7 +13,7 @@ set(PROBLEM 2)
set(FLUX 1)
set(DIFFFLUX PRIMALDG)
configure_file(parameter ${CMAKE_CURRENT_BINARY_DIR}/parameter COPYONLY)
configure_file(parameter.in ${CMAKE_CURRENT_BINARY_DIR}/parameter )
add_definitions( "-D${GRIDTYPE}" )
add_definitions( "-DGRIDDIM=${GRIDDIM}" )
......
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# This file precribes parameters for the testcase found in
#
# Gregor Gassner,
# PhD thesis
#
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# DATA WRITER
#------------
fem.prefix: ${CMAKE_CURRENT_SOURCE_DIR}/data
fem.io.datafileprefix: NS
fem.io.savestep: 0.01 # SaveStep (write data every `saveStep' time period, <=0 deactivates)
fem.io.savecount: -1 # SaveCount (write data every saveCount time steps, <=0 deactivates)
femhowto.printCount: 1
femhowto.additionalvariables: false
# GENERAL
#--------
paramfile: ${CMAKE_CURRENT_SOURCE_DIR}/../parameter/paramBase
# GRID SOLUTION
#--------------
gridsol.savestep: 0.5
gridsol.firstwrite: 0.5
gridsol.filename: nseq-checkpoint
# PROBLEM SETUP
#--------------
paramfile: ${CMAKE_CURRENT_SOURCE_DIR}/../parameter/paramPhysicalConstants
# WBPROBLEM
# g: 0.7 # m/(ss)
# p0: 10. # surface pressure Pa=kg/(mss)
# diffusion coefficients
mu: 0.0001 #00001 # kg/(ms)
g: 9.81 # m/ss
Re: 1. #(Reynold's number)
Pr: 0.72 # 0.72 #(Prandtl's number)
femhowto.startTime: 0. # s
femhowto.endTime: 0.1
femhowto.eocSteps: 5
gammaGNS: 0.5
omegaGNS: 1.
kGNS: 3.1415926535897932385
# DOMAIN CONFIGURATION
#---------------------
fem.io.macroGridFile_1d: ${CMAKE_CURRENT_SOURCE_DIR}/../grids/nswaves_1d.dgf
fem.io.macroGridFile_2d: ${CMAKE_CURRENT_SOURCE_DIR}/../grids/nswaves_2d.dgf
#fem.io.macroGridFile_2d: ${CMAKE_CURRENT_SOURCE_DIR}/../grids/mesh4_1_2.typ1.dgf
#fem.io.macroGridFile_2d: ${CMAKE_CURRENT_SOURCE_DIR}/../grids/mesh4_1_1.typ1.dgf
#fem.io.macroGridFile_2d: ${CMAKE_CURRENT_SOURCE_DIR}/../grids/nswaves_2d_unstr.dgf
fem.io.macroGridFile_3d: ${CMAKE_CURRENT_SOURCE_DIR}/../grids/nswaves_3d.dgf
#fem.io.macroGridFile_3d: ${CMAKE_CURRENT_SOURCE_DIR}/../grids/dkershaw08.msh.dgf
#fem.io.macroGridFile_3d: ${CMAKE_CURRENT_SOURCE_DIR}/../grids/RandMesh4.msh.dgf
# SOLVER CONFIGURATION
#---------------------
paramfile: ${CMAKE_CURRENT_SOURCE_DIR}/../parameter/paramSolver
......@@ -12,7 +12,7 @@ set(GRIDDIM 2)
set(DIMRANGE 1)
set(FLUX 1) #2
configure_file(parameter ${CMAKE_CURRENT_BINARY_DIR}/parameter COPYONLY)
configure_file(parameter.in ${CMAKE_CURRENT_BINARY_DIR}/parameter)
add_definitions( "-D${GRIDTYPE}" )
add_definitions( "-DGRIDDIM=${GRIDDIM}" )
......
femhowto.eocSteps: 30
UseBlocking: 0
# enable or disable DG stabilization
use_dgstabilization: true
use_oldassemble: false
# enable or disable strong boundary conditions
use_strongbnd: false
# polynomial order = 0,1,2,3,4
femhowto.polynomialOrder: 2
# problem number
femhowto.problem: 8 # 5 6 13 16
femhowto.globalshift: 0
femhowto.factor: 1
femhowto.tolerance: 1e-4 # global adapt with tolerance=0
femhowto.adaptive.theta: 0.05 # equal distribution with theta=0, tolerance>0
# true = maximum (theta defines the percentage) | false = Doerfler
femhowto.adaptive.maximumstrategy: false
# none = disabled | coeffroot | prior2p
padaptive.method: none
femhowto.verbose: 1
fem.solver.verbose: 1
fem.solver.matrixfilename: matrixfile
# macro grid file
fem.io.macroGridFile_2d: ${CMAKE_CURRENT_SOURCE_DIR}/../grids/unitcube2.dgf
#fem.io.macroGridFile_2d: ${CMAKE_CURRENT_SOURCE_DIR}/../grids/nonaffine.dgf
#fem.io.macroGridFile_2d: ${CMAKE_CURRENT_SOURCE_DIR}/../grids/corner_cube.dgf
#fem.io.macroGridFile_2d: ${CMAKE_CURRENT_SOURCE_DIR}/../grids/corner.dgf
#fem.io.macroGridFile_2d: ${CMAKE_CURRENT_SOURCE_DIR}/../grids/corner_green.dgf
#fem.io.macroGridFile_2d: ${CMAKE_CURRENT_SOURCE_DIR}/../grids/corner_red.dgf
femhowto.epsilon: 0.1
#femhowto.xvelocity: 1. # the only advection part for the linear heat eqn
#femhowto.yvelocity: 3. # the only advection part for the linear heat eqn
#femhowto.zvelocity: 0. # the only advection part for the linear heat eqn
femhowto.xvelocity: 0. # the only advection part for the linear heat eqn
femhowto.yvelocity: 0. # the only advection part for the linear heat eqn
femhowto.zvelocity: 0. # the only advection part for the linear heat eqn
# choises are: CDG2, CDG, IP, NIPG, BO, BR2
dgdiffusionflux.method: CDG2
dgdiffusionflux.theoryparameters: 1
dgdiffusionflux.lifting: id_id
#dgdiffusionflux.upwind: -1 -0.001
#dgdiffusionflux.upwind: 0 0
dgdiffusionflux.penalty: 0 # for CDG, CDG2, LDG
dgdiffusionflux.liftfactor: 0
# toggle verbosity of on process
# (-1: off, p: process p is verbose, in general 0 is a good choice)
fem.verboserank: 0
fem.adaptation.method: generic
#number of global refinements before start of simulation
femhowto.startLevel: 0
# number of EOC steps
# specify directory for data output (is created if not exists)
fem.prefix: ${CMAKE_CURRENT_SOURCE_DIR}/data
# prefix data data files
fem.io.datafileprefix: solution
# if you want to add time stemp to eoc file name
# # to avoid overwriting the eoc files
fem.io.eocFileTimeStamp: 0
# output format: grape | vtk-cell | vtk-vertex (projected in DG case), sub-vtk-cell
fem.io.outputformat: vtk-cell
fem.io.subsamplinglevel: 0
# toggle grape display (0 = off | 1 = on)
fem.io.grapedisplay: 0
# write file with values of numerical solution at
# the end time along given line
femhowto.sampleAlongLine: 0
paramfile: solverparameter
poisson.nonConformOrigin: false
istl.preconditioning.method: ilu-0
istl.preconditioning.iterations: 1
istl.preconditioning.relaxation: 1
nonconformitydifference: -1
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment