Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F95217559
fe.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
Fri, Dec 13, 20:10
Size
1 KB
Mime Type
text/x-python
Expires
Sun, Dec 15, 20:10 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22846465
Attached To
rAKA akantu
fe.py
View Options
__copyright__
=
(
"Copyright (©) 2016-2023 EPFL (Ecole Polytechnique Fédérale de Lausanne)"
"Laboratory (LSMS - Laboratoire de Simulation en Mécanique des Solides)"
)
__license__
=
"LGPLv3"
import
abc
class
Solver
(
metaclass
=
abc
.
ABCMeta
):
@abc.abstractmethod
def
solveStep
(
self
):
pass
def
_zero_rows
(
self
,
A
,
rows
):
for
r
in
rows
:
diag
=
A
[
r
,
r
]
# zeros the lines defined in b
A
.
data
[
A
.
indptr
[
r
]:
A
.
indptr
[
r
+
1
]]
=
0.
A
[
r
,
r
]
=
diag
class
Model
(
metaclass
=
abc
.
ABCMeta
):
@abc.abstractmethod
def
applyDirichletBC
(
self
):
pass
@abc.abstractmethod
def
f_int
(
self
):
pass
@property
@abc.abstractmethod
def
f_ext
(
self
):
pass
@property
@abc.abstractmethod
def
K
(
self
):
pass
@property
@abc.abstractmethod
def
M
(
self
):
pass
@property
@abc.abstractmethod
def
C
(
self
):
pass
@property
@abc.abstractmethod
def
blocked
(
self
):
pass
Event Timeline
Log In to Comment