Skip to content

Commit

Permalink
move test folder to main folder and create doc folder
Browse files Browse the repository at this point in the history
  • Loading branch information
mbonatte committed Aug 28, 2023
1 parent 19f1bb9 commit 475a004
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 6 deletions.
21 changes: 21 additions & 0 deletions doc/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
CONTENTS:

[1] What is here




[1] What is here
==============================================================================
The directory tree below holds documentation of the SeCan package.

SECAN_DOC_DIR
|
|-- user_manual - secan user manual
|
|-- material_manual - material library documentation. Description of available material
| models and their parameters
|
|-- theory_manual - theory manual
|
|-- programmer_manual - secan programmer's manual
6 changes: 3 additions & 3 deletions secan/material.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Material(ABC):
@abstractmethod
def get_stiff(self, strain: float) -> float:
"""
Calculate material stiffness based on the given strain.
Calculate material tangent stiffness based for a given strain.
Args:
strain (float): Strain value.
Expand All @@ -32,7 +32,7 @@ def get_stiff(self, strain: float) -> float:
@abstractmethod
def get_stress(self, strain: float) -> float:
"""
Calculate material stress based on the given strain.
Calculate material stress for a given strain.
Args:
strain (float): Strain value.
Expand All @@ -44,7 +44,7 @@ def get_stress(self, strain: float) -> float:

def plot(self, plot=None):
"""
Plot the material (default implementation prints a message).
Plot the material stress/strain relationship (default implementation prints a message).
Args:
plot (object): Plotting object (optional).
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions secan/test/test.py → test/test.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import unittest
import numpy as np
from ..section import Section
from ..material import Concrete, SteelIdeal, SteelHardening
from ..geometry import RectSection, Rebar, Tendon
from secan.section import Section
from secan.material import Concrete, SteelIdeal, SteelHardening
from secan.geometry import RectSection, Rebar, Tendon

class TestMaterials(unittest.TestCase):

Expand Down

0 comments on commit 475a004

Please sign in to comment.