xref: /honee/problems/taylorgreen.c (revision c122ba76445fa4d1ab0bea6ae3e064b1e5f06587)
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.qf_func_ptr = ICsTaylorGreen;
16   problem->ics.qf_loc      = ICsTaylorGreen_loc;
17   PetscFunctionReturn(PETSC_SUCCESS);
18 }
19