1 // SPDX-FileCopyrightText: Copyright (c) 2017-2024, HONEE contributors. 2 // SPDX-License-Identifier: Apache-2.0 OR BSD-2-Clause 3 4 /// @file 5 /// Utility functions for setting up Taylor-Green Vortex 6 7 #include "../qfunctions/taylorgreen.h" 8 9 #include <navierstokes.h> 10 11 PetscErrorCode NS_TAYLOR_GREEN(ProblemData problem, DM dm, void *ctx, SimpleBC bc) { 12 PetscFunctionBeginUser; 13 PetscCall(NS_NEWTONIAN_IG(problem, dm, ctx, bc)); 14 15 problem->ics.qfunction = ICsTaylorGreen; 16 problem->ics.qfunction_loc = ICsTaylorGreen_loc; 17 PetscFunctionReturn(PETSC_SUCCESS); 18 } 19