/*******************************************************************************
 * 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 MaterialElement
 * @brief The MaterialElement class.
 * @author tlc
 * @date 31/10/2017
 * @version 0.1.0
 * @file MaterialElement.h
 * @addtogroup Element
 * @{
 */

#ifndef MATERIALELEMENT_H
#define MATERIALELEMENT_H

#include <Element/Element.h>

class MaterialElement : public Element {
public:
    MaterialElement(
        unsigned,                // tag
        unsigned,                // number of nodes
        unsigned,                // number of dofs
        uvec&&,                  // node encoding
        uvec&&,                  // material tags
        bool,                    // nonlinear geometry switch
        MaterialType,            // material type
        std::vector<Node::DOF>&& // dof identifier
    );
};

class MaterialElement1D : public MaterialElement {
public:
    MaterialElement1D(
        unsigned,                // tag
        unsigned,                // number of nodes
        unsigned,                // number of dofs
        uvec&&,                  // node encoding
        uvec&&,                  // material tags
        bool,                    // nonlinear geometry switch
        std::vector<Node::DOF>&& // dof identifier
    );
};

class MaterialElement2D : public MaterialElement {
public:
    MaterialElement2D(
        unsigned,                // tag
        unsigned,                // number of nodes
        unsigned,                // number of dofs
        uvec&&,                  // node encoding
        uvec&&,                  // material tags
        bool,                    // nonlinear geometry switch
        std::vector<Node::DOF>&& // dof identifier
    );
};

class MaterialElement3D : public MaterialElement {
public:
    MaterialElement3D(
        unsigned,                                                                // tag
        unsigned,                                                                // number of nodes
        unsigned,                                                                // number of dofs
        uvec&&,                                                                  // node encoding
        uvec&&,                                                                  // material tags
        bool,                                                                    // nonlinear geometry switch
        std::vector<Node::DOF>&& = {Node::DOF::U1, Node::DOF::U2, Node::DOF::U3} // dof identifier
    );
};

#endif

//! @}
