Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transient #58

Open
wants to merge 4 commits into
base: devel
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions examples/simpleTransient/adjoint.i
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
coord_y = measured_data/measurement_ycoord
coord_z = measured_data/measurement_zcoord
time = measured_data/measurement_time
reverse_time_end = 1
reverse_time_end = 1.05
[]
[]

Expand All @@ -66,6 +66,7 @@
type = CSVReader
csv_file = source_params.csv
header = true
outputs = none
[]
[]

Expand All @@ -84,19 +85,22 @@
type = ElementOptimizationSourceFunctionInnerProduct
variable = u
function = source
reverse_time_end = 1
reverse_time_end = 1.05
[]
[]

[Executioner]
type = Transient

num_steps = 100
num_steps = 20
end_time = 1

solve_type = NEWTON
petsc_options_iname = '-pc_type -pc_hypre_type'
petsc_options_value = 'hypre boomeramg'
petsc_options_iname = '-ksp_type -pc_type -pc_factor_mat_solver_package'
petsc_options_value = 'preonly lu superlu_dist'
[TimeIntegrator]
type = ImplicitEuler
[]
[]

[Outputs]
Expand Down
78 changes: 64 additions & 14 deletions examples/simpleTransient/forward.i
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,17 @@
type = CSVReader
csv_file = source_params.csv
header = true
outputs=none
[]
[]

[ICs]
[initial]
type = FunctionIC
variable = u
function = exact
[]
[]
#[ICs]
# [initial]
# type = FunctionIC
# variable = u
# function = exact
# []
#[]

[Kernels]
[dt]
Expand Down Expand Up @@ -73,13 +74,14 @@

[Executioner]
type = Transient

num_steps = 100
num_steps = 20
end_time = 1

solve_type = NEWTON
petsc_options_iname = '-pc_type -pc_hypre_type'
petsc_options_value = 'hypre boomeramg'
petsc_options_iname = '-ksp_type -pc_type -pc_factor_mat_solver_package'
petsc_options_value = 'preonly lu superlu_dist'
[TimeIntegrator]
type = ImplicitEuler
[]
[]

[Reporters]
Expand All @@ -93,11 +95,59 @@
file_value = u
variable = u
execute_on = timestep_end
outputs = csv
outputs = none
[]
[]

[Postprocessors]
[p0]
type = PointValue
outputs = 'out'
point = '.5 .5 0'
variable = u
[]
[p1]
type = PointValue
outputs = 'out'
point = '.5 -.5 0'
variable = u
[]
[p2]
type = PointValue
outputs = 'out'
point = '-.5 -.5 0'
variable = u
[]
[p3]
type = PointValue
outputs = 'out'
point = '-.5 .5 0'
variable = u
[]
[p4]
type = PointValue
outputs = 'out'
point = '.7 -.7 0'
variable = u
[]
[p5]
type = PointValue
outputs = 'out'
point = '.4 -.6 0'
variable = u
[]
[p6]
type = PointValue
outputs = 'out'
point = '.6 -.4 0'
variable = u
[]
[]

[Outputs]
exodus = true
exodus = false
console = false
[out]
type = CSV
[]
[]
Loading