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

Add framework test for higher order scalar variable with mesh adaptivity #12538

Open
SudiptaBiswas opened this issue Nov 26, 2018 · 0 comments
Open
Labels
C: Framework P: normal A defect affecting operation with a low possibility of significantly affects. T: task An enhancement to the software.

Comments

@SudiptaBiswas
Copy link
Contributor

Rationale

Recently, it has been noticed that higher order scalar variables are not compatible with adaptive meshing (#12309/#12407). The issue has been resolved by libMesh/libmesh#1904 and libMesh/libmesh#1948. So, @roystgnr suggested we should add a small test in the framework to test this capability.

Description

As of now, the error can be reproduced using the following input file,

[Mesh]
  type = GeneratedMesh
  dim = 2
  nx = 10
  ny = 10
  xmin = -0.5
  xmax = 0.5
  ymin = -0.5
  ymax = 0.5
[]

[Variables]
  [./scalar]
    order = THIRD
    family = SCALAR
  [../]
  [./u]
    [./InitialCondition]
      type = FunctionIC
      function = 'x*x+y*y'
    [../]
  [../]
[]

[Kernels]
  [./u_dot]
    type = TimeDerivative
    variable = u
  [../]
  [./c_res]
    type = Diffusion
    variable = u
  [../]
[]

[ScalarKernels]
  [./d1]
    type = ODETimeDerivative
    variable = scalar
  [../]
[]

[BCs]
  [./Periodic]
    [./all]
      auto_direction = 'x y'
      variable = 'u'
    [../]
  [../]
[]

[Preconditioning]
  [./SMP]
    type = SMP
    full = true
  [../]
[]

[Executioner]
  type = Transient
  solve_type = 'PJFNK'
  petsc_options_iname = '-pc_type -sub_pc_type'
  petsc_options_value = 'asm         lu     '
  num_steps = 2
[]

[Adaptivity]
 initial_steps = 2
 max_h_level = 2
 marker = EFM
[./Markers]
   [./EFM]
     type = ErrorFractionMarker
     coarsen = 0.2
     refine = 0.8
     indicator = GJI
   [../]
 [../]
 [./Indicators]
   [./GJI]
     type = GradientJumpIndicator
     variable = u
    [../]
 [../]
[]

[Outputs]
  exodus = true
[]

Once the libmesh changes are available in MOOSE, the error should disappear.

Impact

A new test will be added, does not affect any existing capabilities.

@permcody permcody added C: Framework T: task An enhancement to the software. P: normal A defect affecting operation with a low possibility of significantly affects. labels Dec 10, 2018
roystgnr added a commit to roystgnr/moose that referenced this issue Jan 5, 2023
This resolves idaholab#12309 and idaholab#12538

The libMesh bug here got fixed years ago, but apparently the MOOSE test
coverage for the fix got lost in the couch cushions until I stumbled
across it while searching old issues.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: Framework P: normal A defect affecting operation with a low possibility of significantly affects. T: task An enhancement to the software.
Projects
None yet
Development

No branches or pull requests

2 participants