From 97d8c036d8bb68b70097dbe2e328cabb15a54664 Mon Sep 17 00:00:00 2001 From: Rene Gassmoeller Date: Wed, 21 Aug 2024 16:42:15 +0200 Subject: [PATCH] Selectively apply to examples. --- examples/step-34/parameters.prm | 8 ++++---- examples/step-60/parameters.prm | 24 ++++++++++++------------ examples/step-70/parameters.prm | 8 +++++--- examples/step-70/parameters_23.prm | 10 +++++++--- examples/step-86/heat_equation.prm | 14 +++++++------- 5 files changed, 35 insertions(+), 29 deletions(-) diff --git a/examples/step-34/parameters.prm b/examples/step-34/parameters.prm index 4fc0df2978..817bd058ab 100644 --- a/examples/step-34/parameters.prm +++ b/examples/step-34/parameters.prm @@ -9,7 +9,7 @@ set Run 3d simulation = true subsection Exact solution 2d # Any constant used inside the function which is not a variable name. - set Function constants = + set Function constants = # Separate vector valued expressions by ';' as ',' is used internally by the # function parser. @@ -22,7 +22,7 @@ end subsection Exact solution 3d # Any constant used inside the function which is not a variable name. - set Function constants = + set Function constants = # Separate vector valued expressions by ';' as ',' is used internally by the # function parser. @@ -49,7 +49,7 @@ end subsection Wind function 2d # Any constant used inside the function which is not a variable name. - set Function constants = + set Function constants = # Separate vector valued expressions by ';' as ',' is used internally by the # function parser. @@ -62,7 +62,7 @@ end subsection Wind function 3d # Any constant used inside the function which is not a variable name. - set Function constants = + set Function constants = # Separate vector valued expressions by ';' as ',' is used internally by the # function parser. diff --git a/examples/step-60/parameters.prm b/examples/step-60/parameters.prm index e612757510..7c9638427c 100644 --- a/examples/step-60/parameters.prm +++ b/examples/step-60/parameters.prm @@ -18,12 +18,12 @@ subsection Distributed Lagrange<1,2> # that describes the function, rather than having to use its numeric value # everywhere the constant appears. These values can be defined using this # parameter, in the form `var1=value1, var2=value2, ...'. - # + # # A typical example would be to set this runtime parameter to # `pi=3.1415926536' and then use `pi' in the expression of the actual # formula. (That said, for convenience this class actually defines both # `pi' and `Pi' by default, but you get the idea.) - set Function constants = R=.3, Cx=.4, Cy=.4 # default: + set Function constants = R=.3, Cx=.4, Cy=.4 # default: # The formula that denotes the function you want to evaluate for # particular values of the independent variables. This expression may @@ -34,7 +34,7 @@ subsection Distributed Lagrange<1,2> # true, and to the third argument otherwise. For a full overview of # possible expressions accepted see the documentation of the muparser # library at http://muparser.beltoforion.de/. - # + # # If the function you are describing represents a vector-valued function # with multiple components, then separate the expressions for individual # components by a semicolon. @@ -59,12 +59,12 @@ subsection Distributed Lagrange<1,2> # that describes the function, rather than having to use its numeric value # everywhere the constant appears. These values can be defined using this # parameter, in the form `var1=value1, var2=value2, ...'. - # + # # A typical example would be to set this runtime parameter to # `pi=3.1415926536' and then use `pi' in the expression of the actual # formula. (That said, for convenience this class actually defines both # `pi' and `Pi' by default, but you get the idea.) - set Function constants = + set Function constants = # The formula that denotes the function you want to evaluate for # particular values of the independent variables. This expression may @@ -75,7 +75,7 @@ subsection Distributed Lagrange<1,2> # true, and to the third argument otherwise. For a full overview of # possible expressions accepted see the documentation of the muparser # library at http://muparser.beltoforion.de/. - # + # # If the function you are describing represents a vector-valued function # with multiple components, then separate the expressions for individual # components by a semicolon. @@ -100,12 +100,12 @@ subsection Distributed Lagrange<1,2> # that describes the function, rather than having to use its numeric value # everywhere the constant appears. These values can be defined using this # parameter, in the form `var1=value1, var2=value2, ...'. - # + # # A typical example would be to set this runtime parameter to # `pi=3.1415926536' and then use `pi' in the expression of the actual # formula. (That said, for convenience this class actually defines both # `pi' and `Pi' by default, but you get the idea.) - set Function constants = + set Function constants = # The formula that denotes the function you want to evaluate for # particular values of the independent variables. This expression may @@ -116,7 +116,7 @@ subsection Distributed Lagrange<1,2> # true, and to the third argument otherwise. For a full overview of # possible expressions accepted see the documentation of the muparser # library at http://muparser.beltoforion.de/. - # + # # If the function you are describing represents a vector-valued function # with multiple components, then separate the expressions for individual # components by a semicolon. @@ -141,12 +141,12 @@ subsection Distributed Lagrange<1,2> # that describes the function, rather than having to use its numeric value # everywhere the constant appears. These values can be defined using this # parameter, in the form `var1=value1, var2=value2, ...'. - # + # # A typical example would be to set this runtime parameter to # `pi=3.1415926536' and then use `pi' in the expression of the actual # formula. (That said, for convenience this class actually defines both # `pi' and `Pi' by default, but you get the idea.) - set Function constants = + set Function constants = # The formula that denotes the function you want to evaluate for # particular values of the independent variables. This expression may @@ -157,7 +157,7 @@ subsection Distributed Lagrange<1,2> # true, and to the third argument otherwise. For a full overview of # possible expressions accepted see the documentation of the muparser # library at http://muparser.beltoforion.de/. - # + # # If the function you are describing represents a vector-valued function # with multiple components, then separate the expressions for individual # components by a semicolon. diff --git a/examples/step-70/parameters.prm b/examples/step-70/parameters.prm index 672dac0d42..2dc7f79ef7 100644 --- a/examples/step-70/parameters.prm +++ b/examples/step-70/parameters.prm @@ -12,11 +12,13 @@ subsection Stokes Immersed Problem set Velocity degree = 2 set Viscosity = 1 set Output directory = . + subsection Angular velocity - set Function constants = - set Function expression = t < .500001 ? 6.283185 : -6.283185 # default: 0 + set Function constants = + set Function expression = t < .500001 ? 6.283185 : -6.283185 set Variable names = x,y,t end + subsection Grid generation set Fluid grid generator = hyper_cube set Fluid grid generator arguments = -1: 1: false @@ -37,7 +39,7 @@ subsection Stokes Immersed Problem end subsection Right hand side - set Function constants = + set Function constants = set Function expression = 0; 0; 0 set Variable names = x,y,t end diff --git a/examples/step-70/parameters_23.prm b/examples/step-70/parameters_23.prm index 86863571ea..39656cb18a 100644 --- a/examples/step-70/parameters_23.prm +++ b/examples/step-70/parameters_23.prm @@ -21,19 +21,22 @@ subsection Stokes Immersed Problem set Particle insertion refinement = 4 set Velocity degree = 2 set Viscosity = 1 + subsection Angular velocity - set Function constants = + set Function constants = set Function expression = t < .500001 ? 10 : -10 set Variable names = x,y,z,t end + subsection Grid generation set Fluid grid generator = hyper_rectangle set Fluid grid generator arguments = -50,-50, -10: 50, 50, 40: false set Solid grid generator = impeller.vtk - set Solid grid generator arguments = + set Solid grid generator arguments = set Particle grid generator = hyper_ball set Particle grid generator arguments = 30, 30, 20: 10: false end + subsection Refinement and remeshing set Maximum number of cells = 100000 set Refinement coarsening fraction = 0.3 @@ -43,8 +46,9 @@ subsection Stokes Immersed Problem set Refinement step frequency = 5 set Refinement strategy = fixed_fraction end + subsection Right hand side - set Function constants = + set Function constants = set Function expression = 0; 0; 0; 0 set Variable names = x,y,z,t end diff --git a/examples/step-86/heat_equation.prm b/examples/step-86/heat_equation.prm index da176a9459..68c9e364a5 100644 --- a/examples/step-86/heat_equation.prm +++ b/examples/step-86/heat_equation.prm @@ -4,19 +4,19 @@ subsection Heat Equation set Mesh adaptation frequency = 10 subsection Right hand side - set Function constants = + set Function constants = set Function expression = 0 set Variable names = x,y,t end - + subsection Initial value - set Function constants = + set Function constants = set Function expression = 0 set Variable names = x,y,t end - + subsection Boundary values - set Function constants = + set Function constants = set Function expression = (if(x<-0.999, 1, 0) + if(x>0.999, -1, 0)) * cos(4*pi*t) set Variable names = x,y,t end @@ -28,7 +28,7 @@ subsection Heat Equation set initial time = 0 set match final time = false set maximum number of steps = -1 - set options prefix = + set options prefix = set solver type = beuler end @@ -39,6 +39,6 @@ subsection Heat Equation set ignore algebraic lte = true set maximum step size = -1 set minimum step size = -1 - end + end end end -- 2.39.5