Skip to content

Commit 917d74a

Browse files
committed
Initial commit of the 4C-Webviewer
- already subdivided the functionality to separate files or folders - reduced the dependency of external modules to acceptable modules - added installation instructions to the README - In keeping with the season, there have been a few unwanted eastereggs since yesterday, after I separated all code from the main to run_webserver. It still works, but there are serialization errors. My current understanding of this is that only "trivial" objects can be communicated, but the VTU objects are more complex.
1 parent 4a0728c commit 917d74a

File tree

10 files changed

+2422
-79
lines changed

10 files changed

+2422
-79
lines changed

README.md

Lines changed: 21 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -1,93 +1,35 @@
11
# 4C-Webviewer
22

3+
## Purpose
34

5+
This repo is meant to improve the 4C Webviewer to get it to a stage to make it public to all interested people. It is already subdivided into smaller parts, however it is certainly not optimal yet.
46

5-
## Getting started
7+
Furthermore, there is no testing included at this stage.
68

7-
To make it easy for you to get started with GitLab, here's a list of recommended next steps.
9+
## How to install the conda environment needed for the 4C-Webviewer
810

9-
Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)!
10-
11-
## Add your files
12-
13-
- [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files
14-
- [ ] [Add files using the command line](https://docs.gitlab.com/ee/gitlab-basics/add-file.html#add-a-file-using-the-command-line) or push an existing Git repository with the following command:
11+
This is already rather nice because we only have acceptable dependencies, i.e. open source dependencies:
1512

1613
```
17-
cd existing_repo
18-
git remote add origin https://gitlab.lrz.de/cschmidt/4c-webviewer.git
19-
git branch -M main
20-
git push -uf origin main
21-
```
22-
23-
## Integrate with your tools
24-
25-
- [ ] [Set up project integrations](https://gitlab.lrz.de/cschmidt/4c-webviewer/-/settings/integrations)
26-
27-
## Collaborate with your team
28-
29-
- [ ] [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/)
30-
- [ ] [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html)
31-
- [ ] [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically)
32-
- [ ] [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/)
33-
- [ ] [Set auto-merge](https://docs.gitlab.com/ee/user/project/merge_requests/merge_when_pipeline_succeeds.html)
34-
35-
## Test and Deploy
36-
37-
Use the built-in continuous integration in GitLab.
38-
39-
- [ ] [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/index.html)
40-
- [ ] [Analyze your code for known vulnerabilities with Static Application Security Testing (SAST)](https://docs.gitlab.com/ee/user/application_security/sast/)
41-
- [ ] [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html)
42-
- [ ] [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/)
43-
- [ ] [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html)
44-
45-
***
46-
47-
# Editing this README
48-
49-
When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thanks to [makeareadme.com](https://www.makeareadme.com/) for this template.
14+
conda create --name <name-of-environment> python=3.10
15+
conda activate <name-of-environment>
5016
51-
## Suggestions for a good README
17+
pip install lnmmeshio
5218
53-
Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information.
19+
pip install trame
20+
pip install trame-vuetify trame-vtk
21+
pip install trame-components
22+
pip install --upgrade trame-plotly
5423
55-
## Name
56-
Choose a self-explaining name for your project.
57-
58-
## Description
59-
Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors.
60-
61-
## Badges
62-
On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge.
63-
64-
## Visuals
65-
Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method.
66-
67-
## Installation
68-
Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection.
69-
70-
## Usage
71-
Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README.
72-
73-
## Support
74-
Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc.
75-
76-
## Roadmap
77-
If you have ideas for releases in the future, it is a good idea to list them in the README.
78-
79-
## Contributing
80-
State if you are open to contributions and what your requirements are for accepting them.
81-
82-
For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self.
83-
84-
You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser.
24+
pip install plotly
25+
pip install pandas
26+
pip install vtk
27+
```
8528

86-
## Authors and acknowledgment
87-
Show your appreciation to those who have contributed to the project.
29+
## How to run the 4C-Webviewer
8830

89-
## License
90-
For open source projects, say how it is licensed.
31+
Change to the directory of the repo. Activate the created conda environment and run
9132

92-
## Project status
93-
If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers.
33+
```
34+
python main.py
35+
```

default_files/default_file.dat

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
==================================================================
2+
General Data File BACI
3+
==================================================================
4+
-------------------------------------------------------------TITLE
5+
Test: Apply constant displacement rate up to a certain displacement and hold this for a number of seconds.
6+
It should be tested whether the implemented model MAT_InelasticDefgradUnifiedViscoplastic is able to
7+
model stress relaxation.
8+
------------------------------------------------------PROBLEM SIZE
9+
//ELEMENTS 1
10+
//NODES 8
11+
DIM 3
12+
--------------------------------------------------------PROBLEM TYP
13+
PROBLEMTYP Structure
14+
-----------------------------------------------------------------IO
15+
STRUCT_STRESS cauchy
16+
STRUCT_STRAIN log
17+
------------------------------------IO/RUNTIME VTK OUTPUT/STRUCTURE
18+
OUTPUT_STRUCTURE yes
19+
DISPLACEMENT yes
20+
STRESS_STRAIN yes
21+
----------------------------------------------IO/RUNTIME VTK OUTPUT
22+
OUTPUT_DATA_FORMAT binary
23+
INTERVAL_STEPS 1
24+
-------------------------------------------------STRUCTURAL DYNAMIC
25+
INT_STRATEGY Standard
26+
DYNAMICTYP Statics
27+
RESULTSEVRY 1
28+
RESTARTEVRY 30
29+
TIMESTEP 1.25e-1
30+
NUMSTEP 1000000
31+
MAXTIME 1.25e1
32+
LINEAR_SOLVER 1
33+
TOLRES 1e-8
34+
TOLDISP 1e-10
35+
-----------------------------------------------------------SOLVER 1
36+
SOLVER UMFPACK
37+
----------------------------------------------------------MATERIALS
38+
MAT 1 MAT_MultiplicativeSplitDefgradElastHyper NUMMATEL 1 MATIDSEL 2 NUMFACINEL 1 INELDEFGRADFACIDS 3 DENS 5.34e-4
39+
MAT 2 ELAST_CoupNeoHooke YOUNG 7.810e3 NUE 0.38
40+
MAT 3 MAT_InelasticDefgradGenericIsotropicViscoplastic VP_FR_MATID 4
41+
MAT 4 MAT_ViscoplasticFlowRuleReformulatedJohnsonCook SIM_TEMPERATURE 293.0 MELT_TEMPERATURE 1793.0 REF_TEMPERATURE 293.0 TEMPERATURE_EXP 1.03 STRAIN_RATE_PREFAC 0.02 STRAIN_RATE_EXP_FAC 5 INIT_YIELD_STRENGTH 1.0 ISOTROP_HARDEN_PREFAC 10.0 ISOTROP_HARDEN_EXP 2.0
42+
-------------------------------------------------------------FUNCT1
43+
COMPONENT 0 SYMBOLIC_FUNCTION_OF_SPACE_TIME 1.2*x
44+
COMPONENT 1 SYMBOLIC_FUNCTION_OF_SPACE_TIME -0.080830788307857
45+
------------------------------------------------RESULT DESCRIPTION
46+
STRUCTURE DIS structure NODE 4 QUANTITY dispy VALUE -1.31962249833408790e-01 TOLERANCE 9.1e-10
47+
STRUCTURE DIS structure NODE 5 QUANTITY dispx VALUE -1.31962249833408513e-01 TOLERANCE 9.1e-10
48+
STRUCTURE DIS structure NODE 8 QUANTITY dispx VALUE -9.06271329067036280e-02 TOLERANCE 9.1e-10
49+
STRUCTURE DIS structure NODE 8 QUANTITY dispy VALUE -9.06271329067068060e-02 TOLERANCE 9.1e-10
50+
STRUCTURE DIS structure NODE 8 QUANTITY dispz VALUE 2.84025416687741394e-01 TOLERANCE 2.8e-09
51+
STRUCTURE DIS structure NODE 6 QUANTITY dispx VALUE -9.06271329067021153e-02 TOLERANCE 9.1e-10
52+
STRUCTURE DIS structure NODE 4 QUANTITY stress_zz VALUE 1.83879098311578976e-01 TOLERANCE 1.8e-07
53+
STRUCTURE DIS structure NODE 8 QUANTITY stress_zz VALUE 1.83879098311589884e-01 TOLERANCE 1.8e-07
54+
------------------------------------------------DESIGN DESCRIPTION
55+
NDPOINT 1
56+
NDLINE 0
57+
NDSURF 2
58+
NDVOL 0
59+
------------------------------------DESIGN POINT DIRICH CONDITIONS
60+
DPOINT 1
61+
// bottom_vertex_full
62+
E 1 - NUMDOF 3 ONOFF 1 1 1 VAL 0.0 0.0 0.0 FUNCT none none none
63+
-------------------------------------DESIGN SURF DIRICH CONDITIONS
64+
DSURF 2
65+
// z_top
66+
E 1 - NUMDOF 3 ONOFF 0 0 1 VAL 0.0 0.0 1.0 FUNCT none none 1
67+
// z_bottom
68+
E 2 - NUMDOF 3 ONOFF 0 0 1 VAL 0.0 0.0 0.0 FUNCT none none none
69+
-----------------------------------------------DNODE-NODE TOPOLOGY
70+
NODE 2 DNODE 1
71+
-----------------------------------------------DSURF-NODE TOPOLOGY
72+
NODE 1 DSURFACE 1
73+
NODE 4 DSURFACE 1
74+
NODE 5 DSURFACE 1
75+
NODE 8 DSURFACE 1
76+
NODE 2 DSURFACE 2
77+
NODE 3 DSURFACE 2
78+
NODE 6 DSURFACE 2
79+
NODE 7 DSURFACE 2
80+
-------------------------------------------------------NODE COORDS
81+
NODE 1 COORD -5.0000000000000000e-01 -5.0000000000000000e-01 5.0000000000000000e-01
82+
NODE 2 COORD -5.0000000000000000e-01 -5.0000000000000000e-01 -5.0000000000000000e-01
83+
NODE 3 COORD -5.0000000000000000e-01 5.0000000000000000e-01 -5.0000000000000000e-01
84+
NODE 4 COORD -5.0000000000000000e-01 5.0000000000000000e-01 5.0000000000000000e-01
85+
NODE 5 COORD 5.0000000000000000e-01 -5.0000000000000000e-01 5.0000000000000000e-01
86+
NODE 6 COORD 5.0000000000000000e-01 -5.0000000000000000e-01 -5.0000000000000000e-01
87+
NODE 7 COORD 5.0000000000000000e-01 5.0000000000000000e-01 -5.0000000000000000e-01
88+
NODE 8 COORD 5.0000000000000000e-01 5.0000000000000000e-01 5.0000000000000000e-01
89+
------------------------------------------------STRUCTURE ELEMENTS
90+
1 SOLIDH8 HEX8 1 2 3 4 5 6 7 8 MAT 1 KINEM nonlinear EAS none
91+
---------------------------------------------------------------END
92+
// END

0 commit comments

Comments
 (0)