Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F66908916
MeshQuad4.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Jun 18, 19:58
Size
440 B
Mime Type
text/x-python
Expires
Thu, Jun 20, 19:58 (2 d)
Engine
blob
Format
Raw Data
Handle
18314772
Attached To
rGOOSEFEM GooseFEM
MeshQuad4.py
View Options
import
unittest
import
numpy
as
np
import
GooseFEM
as
gf
class
Test_MeshQuad4
(
unittest
.
TestCase
):
def
test_FineLayer_replica
(
self
):
mesh
=
gf
.
Mesh
.
Quad4
.
FineLayer
(
27
,
27
)
replica
=
gf
.
Mesh
.
Quad4
.
FineLayer
(
mesh
.
coor
(),
mesh
.
conn
())
self
.
assertTrue
(
np
.
allclose
(
mesh
.
coor
(),
replica
.
coor
()))
self
.
assertTrue
(
np
.
all
(
np
.
equal
(
mesh
.
conn
(),
replica
.
conn
())))
if
__name__
==
'__main__'
:
unittest
.
main
()
Event Timeline
Log In to Comment