Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102645080
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
Sat, Feb 22, 20:10
Size
440 B
Mime Type
text/x-python
Expires
Mon, Feb 24, 20:10 (2 d)
Engine
blob
Format
Raw Data
Handle
24352154
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