Skip to content

Commit ed5d9a3

Browse files
committed
added license statements and modified documentation to reflect recent changes
1 parent 90c6727 commit ed5d9a3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+1150
-28
lines changed

doc/TMR_user_manual.tex

+17-20
Original file line numberDiff line numberDiff line change
@@ -255,9 +255,9 @@ \subsection{Quad/octree-level classes}
255255
\item \texttt{TMROctForest *coarsen()}: Create a new forest object by coarsening all the elements within the mesh by one level, if possible. Does not create new nodes.
256256
\item \texttt{void refine( const int refinement[] )}: Refine the elements in the node by the specified number of levels. If a negative number is supplied, coarsen the element.
257257
\item \texttt{void balance( int balance\_corner=0 )}: Balance all the elements in the mesh to achieve a 2:1 balance
258-
\item \texttt{void createNodes( int order=2 )}: Create all the nodes within the mesh with the given element order
258+
\item \texttt{void createNodes()}: Create all the nodes within the mesh
259259
\item \texttt{TMROctantArray* getOctsWithAttribute( const char *attr )}: Get an array of octants with the desired attribute
260-
\item \texttt{TMROctantArray* getNodesWithAttribute( const char *attr)}: Get an array of octant nodes with the desired attribute
260+
\item \texttt{int* getNodesWithAttribute( const char *attr, int *len )}: Get an array of the nodes numbers with the desired attribute
261261
\item \texttt{void createMeshConn( int **conn, int *nelems )}: Create and return the distributed mesh connectivity using a global ordering
262262
\item \texttt{void createDepNodeConn()}: Create the dependent (hanging) node connectivity
263263
\item \texttt{int getDepNodeConn( const int **ptr, const int **conn, const double **weights )}: Retrieve the dependent node connectivity from the octree object
@@ -314,37 +314,34 @@ \subsection{Python-level}
314314
mesh.mesh(htarget, opts=opts)
315315
\end{verbatim}
316316

317-
318-
\subsection{Mesh refinement algorithms}
317+
\subsection{Error estimation algorithms}
319318

320319
There are two mesh refinement strategies that are implemented in TMR: the first is based on the strain energy norm, while the second is an adjoint-based refinement technique.
321-
Currently, both strategies are implemented only for 2D and mapped 2D meshes.
322320
The strain energy based refinement method is designed to reduce the solution error in the natural strain energy norm.
323321
This call takes the form:
324322
%
325323
\begin{verbatim}
326-
TacsScalar TMR_StrainEnergyRefine( TACSAssembler *tacs,
327-
TMRQuadForest *forest,
328-
double target_err,
329-
int min_level=0,
330-
int max_level=TMR_MAX_LEVEL );
324+
double TMR_StrainEnergyErrorEst( TMRQuadForest *forest,
325+
TACSAssembler *tacs,
326+
TMRQuadForest *forest_refined,
327+
TACSAssembler *tacs_refined,
328+
double *error );
331329
\end{verbatim}
332330
%
333-
The forest is automatically refined based on the requested target error and the solution set in TACS.
331+
The forest can be refined based on the requested target error and the solution set in TACS.
334332

335333
The adjoint-based refinement method requires a \texttt{TACSAssembler} object for both the current level of refinement and a uniformly refined version of the model.
336334
The adjoint-based mesh refinement call takes the form
337335
\begin{verbatim}
338-
TacsScalar TMR_AdjointRefine( TACSAssembler *tacs,
339-
TACSAssembler *refine,
340-
TACSBVec *adjvec,
341-
TMRQuadForest *forest,
342-
double target_err,
343-
int min_level=0,
344-
int max_level=TMR_MAX_LEVEL,
345-
TacsScalar *adj_corr=NULL );
336+
double TMR_AdjointErrorEst( TMRQuadForest *forest,
337+
TACSAssembler *tacs,
338+
TMRQuadForest *forest_refined,
339+
TACSAssembler *tacs_refined,
340+
TACSBVec *adjoint,
341+
double *error,
342+
double *adj_corr );
346343
\end{verbatim}
347-
The adjoint vector is supplied in \texttt{adjvec} and the target error is specified by the \texttt{target\_err} argument.
344+
The adjoint vector is supplied in \texttt{adjvec}.
348345

349346
\bibliographystyle{abbrvnat}
350347
\bibliography{refs}

license.txt

+177
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,177 @@
1+
Apache License
2+
3+
Version 2.0, January 2004
4+
5+
http://www.apache.org/licenses/
6+
7+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
8+
9+
1. Definitions.
10+
11+
"License" shall mean the terms and conditions for use, reproduction,
12+
and distribution as defined by Sections 1 through 9 of this document.
13+
14+
"Licensor" shall mean the copyright owner or entity authorized by the
15+
copyright owner that is granting the License.
16+
17+
"Legal Entity" shall mean the union of the acting entity and all other
18+
entities that control, are controlled by, or are under common control
19+
with that entity. For the purposes of this definition, "control" means
20+
(i) the power, direct or indirect, to cause the direction or
21+
management of such entity, whether by contract or otherwise, or (ii)
22+
ownership of fifty percent (50%) or more of the outstanding shares, or
23+
(iii) beneficial ownership of such entity.
24+
25+
"You" (or "Your") shall mean an individual or Legal Entity exercising
26+
permissions granted by this License.
27+
28+
"Source" form shall mean the preferred form for making modifications,
29+
including but not limited to software source code, documentation
30+
source, and configuration files.
31+
32+
"Object" form shall mean any form resulting from mechanical
33+
transformation or translation of a Source form, including but not
34+
limited to compiled object code, generated documentation, and
35+
conversions to other media types.
36+
37+
"Work" shall mean the work of authorship, whether in Source or Object
38+
form, made available under the License, as indicated by a copyright
39+
notice that is included in or attached to the work (an example is
40+
provided in the Appendix below).
41+
42+
"Derivative Works" shall mean any work, whether in Source or Object
43+
form, that is based on (or derived from) the Work and for which the
44+
editorial revisions, annotations, elaborations, or other modifications
45+
represent, as a whole, an original work of authorship. For the
46+
purposes of this License, Derivative Works shall not include works
47+
that remain separable from, or merely link (or bind by name) to the
48+
interfaces of, the Work and Derivative Works thereof.
49+
50+
"Contribution" shall mean any work of authorship, including the
51+
original version of the Work and any modifications or additions to
52+
that Work or Derivative Works thereof, that is intentionally submitted
53+
to Licensor for inclusion in the Work by the copyright owner or by an
54+
individual or Legal Entity authorized to submit on behalf of the
55+
copyright owner. For the purposes of this definition, "submitted"
56+
means any form of electronic, verbal, or written communication sent to
57+
the Licensor or its representatives, including but not limited to
58+
communication on electronic mailing lists, source code control
59+
systems, and issue tracking systems that are managed by, or on behalf
60+
of, the Licensor for the purpose of discussing and improving the Work,
61+
but excluding communication that is conspicuously marked or otherwise
62+
designated in writing by the copyright owner as "Not a Contribution."
63+
64+
"Contributor" shall mean Licensor and any individual or Legal Entity
65+
on behalf of whom a Contribution has been received by Licensor and
66+
subsequently incorporated within the Work.
67+
68+
2. Grant of Copyright License. Subject to the terms and conditions of
69+
this License, each Contributor hereby grants to You a perpetual,
70+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
71+
copyright license to reproduce, prepare Derivative Works of, publicly
72+
display, publicly perform, sublicense, and distribute the Work and
73+
such Derivative Works in Source or Object form.
74+
75+
3. Grant of Patent License. Subject to the terms and conditions of
76+
this License, each Contributor hereby grants to You a perpetual,
77+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except
78+
as stated in this section) patent license to make, have made, use,
79+
offer to sell, sell, import, and otherwise transfer the Work, where
80+
such license applies only to those patent claims licensable by such
81+
Contributor that are necessarily infringed by their Contribution(s)
82+
alone or by combination of their Contribution(s) with the Work to
83+
which such Contribution(s) was submitted. If You institute patent
84+
litigation against any entity (including a cross-claim or counterclaim
85+
in a lawsuit) alleging that the Work or a Contribution incorporated
86+
within the Work constitutes direct or contributory patent
87+
infringement, then any patent licenses granted to You under this
88+
License for that Work shall terminate as of the date such litigation
89+
is filed.
90+
91+
4. Redistribution. You may reproduce and distribute copies of the Work
92+
or Derivative Works thereof in any medium, with or without
93+
modifications, and in Source or Object form, provided that You meet
94+
the following conditions:
95+
96+
You must give any other recipients of the Work or Derivative Works
97+
a copy of this License; and
98+
99+
You must cause any modified files to carry prominent notices
100+
stating that You changed the files; and
101+
102+
You must retain, in the Source form of any Derivative Works that
103+
You distribute, all copyright, patent, trademark, and attribution
104+
notices from the Source form of the Work, excluding those notices
105+
that do not pertain to any part of the Derivative Works; and
106+
107+
If the Work includes a "NOTICE" text file as part of its
108+
distribution, then any Derivative Works that You distribute must
109+
include a readable copy of the attribution notices contained
110+
within such NOTICE file, excluding those notices that do not
111+
pertain to any part of the Derivative Works, in at least one of
112+
the following places: within a NOTICE text file distributed as
113+
part of the Derivative Works; within the Source form or
114+
documentation, if provided along with the Derivative Works; or,
115+
within a display generated by the Derivative Works, if and
116+
wherever such third-party notices normally appear. The contents of
117+
the NOTICE file are for informational purposes only and do not
118+
modify the License. You may add Your own attribution notices
119+
within Derivative Works that You distribute, alongside or as an
120+
addendum to the NOTICE text from the Work, provided that such
121+
additional attribution notices cannot be construed as modifying
122+
the License.
123+
124+
You may add Your own copyright statement to Your modifications and
125+
may provide additional or different license terms and conditions
126+
for use, reproduction, or distribution of Your modifications, or
127+
for any such Derivative Works as a whole, provided Your use,
128+
reproduction, and distribution of the Work otherwise complies with
129+
the conditions stated in this License.
130+
131+
5. Submission of Contributions. Unless You explicitly state otherwise,
132+
any Contribution intentionally submitted for inclusion in the Work by
133+
You to the Licensor shall be under the terms and conditions of this
134+
License, without any additional terms or conditions. Notwithstanding
135+
the above, nothing herein shall supersede or modify the terms of any
136+
separate license agreement you may have executed with Licensor
137+
regarding such Contributions.
138+
139+
6. Trademarks. This License does not grant permission to use the trade
140+
names, trademarks, service marks, or product names of the Licensor,
141+
except as required for reasonable and customary use in describing the
142+
origin of the Work and reproducing the content of the NOTICE file.
143+
144+
7. Disclaimer of Warranty. Unless required by applicable law or agreed
145+
to in writing, Licensor provides the Work (and each Contributor
146+
provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR
147+
CONDITIONS OF ANY KIND, either express or implied, including, without
148+
limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT,
149+
MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely
150+
responsible for determining the appropriateness of using or
151+
redistributing the Work and assume any risks associated with Your
152+
exercise of permissions under this License.
153+
154+
8. Limitation of Liability. In no event and under no legal theory,
155+
whether in tort (including negligence), contract, or otherwise, unless
156+
required by applicable law (such as deliberate and grossly negligent
157+
acts) or agreed to in writing, shall any Contributor be liable to You
158+
for damages, including any direct, indirect, special, incidental, or
159+
consequential damages of any character arising as a result of this
160+
License or out of the use or inability to use the Work (including but
161+
not limited to damages for loss of goodwill, work stoppage, computer
162+
failure or malfunction, or any and all other commercial damages or
163+
losses), even if such Contributor has been advised of the possibility
164+
of such damages.
165+
166+
9. Accepting Warranty or Additional Liability. While redistributing
167+
the Work or Derivative Works thereof, You may choose to offer, and
168+
charge a fee for, acceptance of support, warranty, indemnity, or other
169+
liability obligations and/or rights consistent with this
170+
License. However, in accepting such obligations, You may act only on
171+
Your own behalf and on Your sole responsibility, not on behalf of any
172+
other Contributor, and only if You agree to indemnify, defend, and
173+
hold each Contributor harmless for any liability incurred by, or
174+
claims asserted against, such Contributor by reason of your accepting
175+
any such warranty or additional liability.
176+
177+
END OF TERMS AND CONDITIONS

src/TMRBase.cpp

+20-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,29 @@
1+
/*
2+
This file is part of the package TMR for adaptive mesh refinement.
3+
4+
Copyright (C) 2015 Georgia Tech Research Corporation.
5+
Additional copyright (C) 2015 Graeme Kennedy.
6+
All rights reserved.
7+
8+
TMR is licensed under the Apache License, Version 2.0 (the "License");
9+
you may not use this software except in compliance with the License.
10+
You may obtain a copy of the License at
11+
12+
http://www.apache.org/licenses/LICENSE-2.0
13+
14+
Unless required by applicable law or agreed to in writing, software
15+
distributed under the License is distributed on an "AS IS" BASIS,
16+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17+
See the License for the specific language governing permissions and
18+
limitations under the License.
19+
*/
20+
121
#include "TMRBase.h"
222
#include "TMRQuadrant.h"
323
#include "TMROctant.h"
424
#include <stddef.h>
525
#include <string.h>
626

7-
/*
8-
Copyright (c) 2016 Graeme Kennedy. All rights reserved.
9-
*/
10-
1127
// Static flag to test if TMR is initialized or not
1228
static int TMR_is_initialized = 0;
1329

src/TMRBase.h

+20-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,26 @@
1-
#ifndef TMR_BASE_H
2-
#define TMR_BASE_H
3-
41
/*
5-
Copyright (c) 2016 Graeme Kennedy. All rights reserved.
2+
This file is part of the package TMR for adaptive mesh refinement.
3+
4+
Copyright (C) 2015 Georgia Tech Research Corporation.
5+
Additional copyright (C) 2015 Graeme Kennedy.
6+
All rights reserved.
7+
8+
TMR is licensed under the Apache License, Version 2.0 (the "License");
9+
you may not use this software except in compliance with the License.
10+
You may obtain a copy of the License at
11+
12+
http://www.apache.org/licenses/LICENSE-2.0
13+
14+
Unless required by applicable law or agreed to in writing, software
15+
distributed under the License is distributed on an "AS IS" BASIS,
16+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17+
See the License for the specific language governing permissions and
18+
limitations under the License.
619
*/
720

21+
#ifndef TMR_BASE_H
22+
#define TMR_BASE_H
23+
824
#include <stdint.h>
925
#include <stdlib.h>
1026
#include <string.h>

src/TMRBspline.cpp

+20
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
/*
2+
This file is part of the package TMR for adaptive mesh refinement.
3+
4+
Copyright (C) 2015 Georgia Tech Research Corporation.
5+
Additional copyright (C) 2015 Graeme Kennedy.
6+
All rights reserved.
7+
8+
TMR is licensed under the Apache License, Version 2.0 (the "License");
9+
you may not use this software except in compliance with the License.
10+
You may obtain a copy of the License at
11+
12+
http://www.apache.org/licenses/LICENSE-2.0
13+
14+
Unless required by applicable law or agreed to in writing, software
15+
distributed under the License is distributed on an "AS IS" BASIS,
16+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17+
See the License for the specific language governing permissions and
18+
limitations under the License.
19+
*/
20+
121
#include "TMRBspline.h"
222
#include "tmrlapack.h"
323
#include <math.h>

src/TMRBspline.h

+20
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
/*
2+
This file is part of the package TMR for adaptive mesh refinement.
3+
4+
Copyright (C) 2015 Georgia Tech Research Corporation.
5+
Additional copyright (C) 2015 Graeme Kennedy.
6+
All rights reserved.
7+
8+
TMR is licensed under the Apache License, Version 2.0 (the "License");
9+
you may not use this software except in compliance with the License.
10+
You may obtain a copy of the License at
11+
12+
http://www.apache.org/licenses/LICENSE-2.0
13+
14+
Unless required by applicable law or agreed to in writing, software
15+
distributed under the License is distributed on an "AS IS" BASIS,
16+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17+
See the License for the specific language governing permissions and
18+
limitations under the License.
19+
*/
20+
121
#ifndef TMR_BSPLINE_H
222
#define TMR_BSPLINE_H
323

src/TMRGeometry.cpp

+20
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
/*
2+
This file is part of the package TMR for adaptive mesh refinement.
3+
4+
Copyright (C) 2015 Georgia Tech Research Corporation.
5+
Additional copyright (C) 2015 Graeme Kennedy.
6+
All rights reserved.
7+
8+
TMR is licensed under the Apache License, Version 2.0 (the "License");
9+
you may not use this software except in compliance with the License.
10+
You may obtain a copy of the License at
11+
12+
http://www.apache.org/licenses/LICENSE-2.0
13+
14+
Unless required by applicable law or agreed to in writing, software
15+
distributed under the License is distributed on an "AS IS" BASIS,
16+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17+
See the License for the specific language governing permissions and
18+
limitations under the License.
19+
*/
20+
121
#include "TMRGeometry.h"
222
#include "TMRMesh.h"
323
#include <math.h>

0 commit comments

Comments
 (0)