/*******************************************************************************
 * Copyright (C) 2017-2026 Theodore Chang
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 ******************************************************************************/
/**
 * @class NonviscousNewmark
 * @brief A NonviscousNewmark class defines a solver using Newmark algorithm.
 *
 * Using exponential function based convolution for global damping model.
 *
 * Reference: 10.1016/j.ymssp.2024.111156
 *
 * @author tlc
 * @date 18/03/2023
 * @version 0.1.0
 * @file NonviscousNewmark.h
 * @addtogroup Integrator
 * @{
 */

#ifndef NONVISCOUSNEWMARK_H
#define NONVISCOUSNEWMARK_H

#include "UDNewmark.h"

class NonviscousNewmark final : public UDNewmark {
protected:
    [[nodiscard]] vec target_field() const override;

public:
    using UDNewmark::UDNewmark;

    void assemble_resistance() override;
    void assemble_effective_matrix() override;

    void print() override;
};

#endif

//! @}
