Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
546bbfb2
Commit
546bbfb2
authored
15 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
*** empty log message ***
parent
609106dc
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Geo/GFaceCompound.cpp
+1
-1
1 addition, 1 deletion
Geo/GFaceCompound.cpp
Solver/distanceTerm.h
+43
-0
43 additions, 0 deletions
Solver/distanceTerm.h
with
44 additions
and
1 deletion
Geo/GFaceCompound.cpp
+
1
−
1
View file @
546bbfb2
...
@@ -901,7 +901,7 @@ void GFaceCompound::compute_distance() const
...
@@ -901,7 +901,7 @@ void GFaceCompound::compute_distance() const
double
mu
=
L
/
28
;
double
mu
=
L
/
28
;
simpleFunction
<
double
>
DIFF
(
mu
*
mu
),
ONE
(
1.0
);
simpleFunction
<
double
>
DIFF
(
mu
*
mu
),
ONE
(
1.0
);
dofManager
<
double
,
double
>
myAssembler
(
_lsys
);
dofManager
<
double
,
double
>
myAssembler
(
_lsys
);
distanceTerm
distance
(
model
(),
1
,
1
,
&
DIFF
,
&
ONE
);
distanceTerm
distance
(
model
(),
1
,
&
DIFF
,
&
ONE
);
std
::
vector
<
MVertex
*>
ordered
;
std
::
vector
<
MVertex
*>
ordered
;
boundVertices
(
_U0
,
ordered
);
boundVertices
(
_U0
,
ordered
);
...
...
This diff is collapsed.
Click to expand it.
Solver/distanceTerm.h
0 → 100644
+
43
−
0
View file @
546bbfb2
// Gmsh - Copyright (C) 1997-2009 C. Geuzaine, J.-F. Remacle
//
// See the LICENSE.txt file for license information. Please report all
// bugs and problems to <gmsh@geuz.org>.
#ifndef _DISTANCE_TERM_H_
#define _DISTANCE_TERM_H_
#include
"helmholtzTerm.h"
class
distanceTerm
:
public
helmholtzTerm
<
double
>
{
public:
distanceTerm
(
GModel
*
gm
,
int
iFieldR
,
int
iFieldC
,
simpleFunction
<
double
>
*
k
,
simpleFunction
<
double
>
*
a
)
:
helmholtzTerm
<
double
>
(
gm
,
iFieldR
,
iFieldC
,
k
,
a
)
{}
void
elementVector
(
SElement
*
se
,
fullVector
<
double
>
&
m
)
const
{
MElement
*
e
=
se
->
getMeshElement
();
int
nbNodes
=
e
->
getNumVertices
();
int
integrationOrder
=
2
*
e
->
getPolynomialOrder
();
int
npts
;
IntPt
*
GP
;
double
jac
[
3
][
3
];
double
ff
[
256
];
e
->
getIntegrationPoints
(
integrationOrder
,
&
npts
,
&
GP
);
m
.
scale
(
0.
);
for
(
int
i
=
0
;
i
<
npts
;
i
++
){
const
double
u
=
GP
[
i
].
pt
[
0
];
const
double
v
=
GP
[
i
].
pt
[
1
];
const
double
w
=
GP
[
i
].
pt
[
2
];
const
double
weight
=
GP
[
i
].
weight
;
const
double
detJ
=
e
->
getJacobian
(
u
,
v
,
w
,
jac
);
e
->
getShapeFunctions
(
u
,
v
,
w
,
ff
);
for
(
int
j
=
0
;
j
<
nbNodes
;
j
++
){
m
(
j
)
+=
ff
[
j
]
*
weight
*
detJ
;
}
}
}
};
#endif
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment