Overture
Version 25
|
#include <iostream>
#include "mathutil.h"
#include "Overture.h"
#include "UnstructuredMapping.h"
#include "MeshQuality.h"
#include "ArraySimple.h"
#include "Geom.h"
Macros | |
#define | STEEPEST |
Enumerations | |
enum | objEnum { optShape, optSize, optShapeSize, optShapePlusSize } |
Functions | |
void | optimize (UnstructuredMapping &umap, RealCompositeGridFunction *cf) |
ArraySimpleFixed< real, 3, 1, 1, 1 > | optimize_one_node_newton_fv (ArraySimple< int > &node_in_element, ArraySimple< int > &elements, realArray &nodes, MeshQualityMetrics &mq) |
ArraySimpleFixed< real, 3, 1, 1, 1 > | optimize_one_node_move_to_center (ArraySimple< int > &node_in_element, ArraySimple< int > &elements, realArray &nodes, ArraySimpleFixed< real, 3, 3, 1, 1 > &T) |
ArraySimpleFixed< real, 3, 1, 1, 1 > | optimize_one_node_steepest_descent (ArraySimple< int > &node_in_element, ArraySimple< int > &elements, realArray &nodes, MeshQualityMetrics &mq) |
void | optimize (UnstructuredMapping &umap, MetricEvaluator &cf) |
void | optimize_one (UnstructuredMapping &umap, UnstructuredMappingIterator &vert, MetricEvaluator &cf) |
Variables | |
bool | useCorners = true |
objEnum | objFunc = optShape |
#define STEEPEST |
enum objEnum |
void optimize | ( | UnstructuredMapping & | umap, |
RealCompositeGridFunction * | cf | ||
) |
void optimize | ( | UnstructuredMapping & | umap, |
MetricEvaluator & | cf | ||
) |
References UnstructuredMapping::adjacency_begin(), UnstructuredMapping::adjacency_end(), UnstructuredMapping::begin(), UnstructuredMapping::end(), UnstructuredMapping::EntityTypeStrings, UnstructuredMapping::Face, UnstructuredMapping::getBoundaryFace(), Mapping::getDomainDimension(), UnstructuredMapping::getEntities(), UnstructuredMapping::getMaxNumberOfNodesPerElement(), UnstructuredMapping::getNodes(), UnstructuredMapping::getNumberOfBoundaryFaces(), UnstructuredMapping::getNumberOfNodesThisFace(), Mapping::getRangeDimension(), UnstructuredMapping::hasTag(), optimize_one_node_newton_fv(), optimize_one_node_steepest_descent(), r, UnstructuredMapping::Region, MeshQualityMetrics::setReferenceTransformation(), UnstructuredMapping::size(), and UnstructuredMapping::Vertex.
Referenced by Ugen::generateWithAdvancingFront(), main(), and optimize().
void optimize_one | ( | UnstructuredMapping & | umap, |
UnstructuredMappingIterator & | vert, | ||
MetricEvaluator & | cf | ||
) |
References UnstructuredMapping::adjacency_begin(), UnstructuredMapping::adjacency_end(), UnstructuredMapping::EntityTypeStrings, UnstructuredMapping::Face, Mapping::getDomainDimension(), UnstructuredMapping::getEntities(), UnstructuredMapping::getMaxNumberOfNodesPerElement(), UnstructuredMapping::getNodes(), Mapping::getRangeDimension(), UnstructuredMapping::hasTag(), optimize_one_node_steepest_descent(), r, UnstructuredMapping::Region, MeshQualityMetrics::setReferenceTransformation(), UnstructuredMapping::size(), and UnstructuredMapping::Vertex.
ArraySimpleFixed<real,3,1,1,1> optimize_one_node_move_to_center | ( | ArraySimple< int > & | node_in_element, |
ArraySimple< int > & | elements, | ||
realArray & | nodes, | ||
ArraySimpleFixed< real, 3, 3, 1, 1 > & | T | ||
) |
References ArraySimple< T >::size().
ArraySimpleFixed<real,3,1,1,1> optimize_one_node_newton_fv | ( | ArraySimple< int > & | node_in_element, |
ArraySimple< int > & | elements, | ||
realArray & | nodes, | ||
MeshQualityMetrics & | mq | ||
) |
References dx, fabs(), max(), REAL_MAX, REAL_MIN, and ArraySimple< T >::size().
Referenced by optimize().
ArraySimpleFixed<real,3,1,1,1> optimize_one_node_steepest_descent | ( | ArraySimple< int > & | node_in_element, |
ArraySimple< int > & | elements, | ||
realArray & | nodes, | ||
MeshQualityMetrics & | mq | ||
) |
References dx, fabs(), max(), REAL_EPSILON, REAL_MAX, REAL_MIN, and ArraySimple< T >::size().
Referenced by optimize(), and optimize_one().
bool useCorners = true |