Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F75308713
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
Thu, Aug 1, 13:18
Size
440 B
Mime Type
text/x-python
Expires
Sat, Aug 3, 13:18 (2 d)
Engine
blob
Format
Raw Data
Handle
19517778
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