Skip to content

Add squirrel tests - #17

Merged
smpark7 merged 7 commits into
arfc:masterfrom
smpark7:vel-func-bc-2026
Sep 23, 2026
Merged

smpark7 merged 7 commits into
arfc:masterfrom
smpark7:vel-func-bc-2026

Conversation

@smpark7

@smpark7 smpark7 commented Jul 13, 2026 •

Copy link
Copy Markdown
Collaborator

Merge #18 before this PR. Fixes #16

Summary

Adds CI test coverage for all objects in squirrel. Squirrel was previously indirectly covered by Moltres CIVET testing. But many objects were not tested for their functionality, thus we only caught build issues.

Contains fixes for several bugs or missing functionality that I deemed essential.

Fixes missing test function calls in DiffusiveFluxBC and InterTemperatureAdvection.

Fixes missing material property input params for rho and cp in PostprocessorTemperatureInflowBC, VelocityFunctionTemperatureOutflowBC, DGFunctionTemperatureAdvection, and VelocityFunctionTemperatureAdvection.

Adds PostprocessorVelocityFunctionTemperatureInflowBC for an inflow BC that accepts a velocity function. The inlet temperature postprocessor also accepts constant scalar values.

List of Changes

  • New tests covering all aux kernels, BCs, DG kernels, interface kernels, kernels, user objects, and vectorpostprocessors.
    • Tests basic functionality and Jacobian correctness.
  • Delete simple_diffusion test which seems to be a copy of a MOOSE test
  • Add _test premultiplier to:
    • DiffusiveFluxBC residual
    • InterTemperatureAdvection heat_source residual contribution
  • Add PostprocessorVelocityFunctionTemperatureInflowBC
  • Add missing rho and cp material property input params in PostprocessorTemperatureInflowBC, VelocityFunctionTemperatureOutflowBC, DGFunctionTemperatureAdvection, and VelocityFunctionTemperatureAdvection.

@smpark7 smpark7 self-assigned this Jul 13, 2026
@smpark7 smpark7 changed the title Vel func bc 2026 Add squirrel tests Jul 13, 2026
@katyhuff
katyhuff self-requested a review September 21, 2026 17:04
Comment thread .github/workflows/tests.yml Outdated
# Adapted from the RACCOON project's test workflow:
# https://github.com/hugary1995/raccoon/blob/devel/.github/workflows/tests.yml

name: Tests

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we be more explicit (SquirrelTests) ?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good. I'll change it to Squirrel CI Testing

Comment on lines +13 to +14
params.addParam<MaterialPropertyName>("rho", "rho", "Density material property name");
params.addParam<MaterialPropertyName>("cp", "cp", "Specific heat material property name");

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
params.addParam<MaterialPropertyName>("rho", "rho", "Density material property name");
params.addParam<MaterialPropertyName>("cp", "cp", "Specific heat material property name");
params.addParam<MaterialPropertyName>("rho", "rho", "Density material property");
params.addParam<MaterialPropertyName>("cp", "cp", "Specific heat material property");

Should these include units?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No because Moltres and Squirrel are unit-agnostic. Users have the freedom of choosing their own units (and the responsibility of ensuring consistency across their mesh, group constants, material properties).

Comment on lines +10 to +11
params.addParam<MaterialPropertyName>("rho", "rho", "Density material property name");
params.addParam<MaterialPropertyName>("cp", "cp", "Specific heat material property name");

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
params.addParam<MaterialPropertyName>("rho", "rho", "Density material property name");
params.addParam<MaterialPropertyName>("cp", "cp", "Specific heat material property name");
params.addParam<MaterialPropertyName>("rho", "rho", "Density material property");
params.addParam<MaterialPropertyName>("cp", "cp", "Specific heat material property");

Comment on lines +13 to +14
params.addParam<MaterialPropertyName>("rho", "rho", "Density material property name");
params.addParam<MaterialPropertyName>("cp", "cp", "Specific heat material property name");

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
params.addParam<MaterialPropertyName>("rho", "rho", "Density material property name");
params.addParam<MaterialPropertyName>("cp", "cp", "Specific heat material property name");
params.addParam<MaterialPropertyName>("rho", "rho", "Density material property");
params.addParam<MaterialPropertyName>("cp", "cp", "Specific heat material property");

Renamed CI workflow from 'Tests' to 'Squirrel Continuous Integration (CI) Testing' per PR review comment
@smpark7
smpark7 merged commit dd6386a into arfc:master Sep 23, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create tests and set up CI testing

2 participants