#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# ---------------------------------------------------------------------
#
# _____ _ _ _ _____ _____
# | ____|__| | ___| |_ _____(_)___ ___| ___| ____|
# | _| / _` |/ _ \ \ \ /\ / / _ \ / __/ __| |_ | _|
# | |__| (_| | __/ |\ V V / __/ \__ \__ \ _| | |___
# |_____\__,_|\___|_| \_/\_/ \___|_|___/___/_| |_____|
#
#
# Unit of Strength of Materials and Structural Analysis
# University of Innsbruck,
# 2017 - today
#
# Matthias Neuner matthias.neuner@uibk.ac.at
#
# This file is part of EdelweissFE.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# The full text of the license can be found in the file LICENSE.md at
# the top level directory of EdelweissFE.
# ---------------------------------------------------------------------
# Created on Fri Jan 27 19:53:45 2017
# @author: Matthias Neuner
[docs]class FieldVariable:
"""This is a basic field variable, tied to a spatial position.
Currently, it is a placeholder used to indicate the presence field variables at a certain location,
and associate them with e.g, nodes.
Furthermore, it allows us to adress them by their unique id (= hash value).
Unlike ScalarVariables, FieldVariable does not directly holds any results/values,
but rather, for performance reasons,
we store results in cumulative Fields, such as NodeField.
"""
def __init__(self, node, field):
self.node = node
self.field = field
self.values = None