Commit 07be8abd authored by François Trigaux's avatar François Trigaux 🤠
Browse files

initial commit

parents
obj/*
bin/*
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "gcc-10 - Générer et déboguer le fichier actif",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/run/gebt",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}/run",
"environment": [],
"externalConsole": false,
"MIMode": "lldb"
}
]
}
\ No newline at end of file
{
"files.associations": {
"globaldatafun.h": "c",
"cIO.C": "cpp",
"c_analysis.h": "c",
"assert.h": "c"
}
}
\ No newline at end of file
CC=gcc
CF=gfortran
LD=gcc
LIBS=-lgfortran -lreadinifile
CFLAGS=-g
F90FLAGS=-g -fimplicit-none -fbacktrace -ffree-line-length-0 -fcheck=all -ffpe-trap=zero,overflow,underflow -finit-real=nan
FFLAGS=-g -fimplicit-none -fbacktrace -ffree-line-length-0 -fcheck=all -ffpe-trap=zero,overflow,underflow -finit-real=nan
# List of directories
DIRC=src/interface
DIRF90=src/fortran90
DIRF=src/fortran
OBJDIR=obj
BINDIR=bin
# List of objects
OBJC=c_analysis.o beam.o main.o
OBJF90= CPUtime.o GlobalDataFun.o TimeFunction.o PrescribedCondition.o InternalData.o Preprocess.o Element.o Member.o System.o Solve.o EigenSolve.o Analysis.o Wrappers.o
OBJF=ddep.o ma28.o mc19.o blas.o lapack.o arpack.o
# Add obj/ in front of all objects names
OBJC := $(OBJC:%.o=$(OBJDIR)/%.o)
OBJF90 := $(OBJF90:%.o=$(OBJDIR)/%.o)
OBJF := $(OBJF:%.o=$(OBJDIR)/%.o)
default: $(OBJC) $(OBJF90) $(OBJF)
$(LD) $(CFLAGS) -o $(BINDIR)/gebt $^ $(LIBS)
cp $(BINDIR)/gebt run/
$(OBJC): $(OBJDIR)/%.o: $(DIRC)/%.c
$(CC) $(CFLAGS) -c $< -o $@
$(OBJF90): $(OBJDIR)/%.o: $(DIRF90)/%.f90
$(CF) $(F90FLAGS) -c $< -o $@ -J$(OBJDIR)
$(OBJF): $(OBJDIR)/%.o: $(DIRF)/%.f
$(CF) $(FFLAGS) -fallow-argument-mismatch -c -o $@ $< -J$(OBJDIR)
clean:
rm $(OBJDIR)/*.o
rm $(OBJDIR)/*.mod
rm $(BINDIR)/gebt
\ No newline at end of file
[Beam]
analysis_flag = 0
nkp = 2
niter = 1000
nstep = 1
nmemb = 1
ncond_pt = 2
nmate = 1
nframe = 0
ndistrfun = 1
ncurv = 0
ncond_mb = 1
\ No newline at end of file
1 0.0 0.0 0.0 # coordinates for each point
2 1.0 0.0 0.0
1 1 2 1 1 0 100 0 #memb_no kp_1 kp_2 mate no1 mate no2 frame_no ndiv curv_no
1 #point condition 1
1 2 3 4 5 6
0 0 0 0 0 0 # corresponding value
0 0 0 0 0 0 # corresponding time functions
0 0 0 0 0 0 # indicate whether it is a follower condition
2 #point condition 2
7 8 9 10 11 12
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
1 # section No. 1
2.93944738387698E-08 0.00000000000000E+00 0.00000000000000E+00 0.00000000000000E+00 0.00000000000000E+00 0.00000000000000E+00
0.00000000000000E+00 0.00000000000000E+00 0.00000000000000E+00 0.00000000000000E+00 0.00000000000000E+00 0.00000000000000E+00
0.00000000000000E+00 0.00000000000000E+00 0.00000000000000E+00 0.00000000000000E+00 0.00000000000000E+00 0.00000000000000E+00
0.00000000000000E+00 0.00000000000000E+00 0.00000000000000E+00 4.69246721094557E-06 0.00000000000000E+00 0.00000000000000E+00
0.00000000000000E+00 0.00000000000000E+00 0.00000000000000E+00 0.00000000000000E+00 6.79584100559513E-06 0.00000000000000E+00
0.00000000000000E+00 0.00000000000000E+00 0.00000000000000E+00 0.00000000000000E+00 0.00000000000000E+00 1.37068861370898E-07
1 #member condition 1
0 0 1 0 0 0
0 0 1 0 0 0
0 0 1 0 0 0
0 0 1 0 0 0
1
1E6 0 0 0 0 0
2.0 10.0
\ No newline at end of file
0 100 10 #dynamic_flag, niter, nstep
2 1 2 1 0 0 0 0 0 # npoint,nmemb,ncond_pt,nmate, nframe, ncond_mb,ndistrfun, ntimefun, ncurv,nvel
1 0.0 0.0 0.0 # coordinates for each point
2 1.0 0.0 0.0
1 1 2 1 1 0 60 0 # kp_1 kp_2 mate_no1 mate_no2 frame# #divisions, curvature# velocity#
1 #point conditions
1 2 3 4 5 6
0 0 0 0 0 0 # corresponding value
0 0 0 0 0 0 # corresponding time functions
0 0 0 0 0 0 # indicate whether it is a follower condition
2
7 8 9 10 11 12
0 0 5E5 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
1 # section No. 1
1.9230769231E-08 0.00000000000000E+00 0.00000000000000E+00 0.00000000000000E+00 0.00000000000000E+00 0.00000000000000E+00
0.00000000000000E+00 0.00000000000000E+00 0.00000000000000E+00 0.00000000000000E+00 0.00000000000000E+00 0.00000000000000E+00
0.00000000000000E+00 0.00000000000000E+00 0.00000000000000E+00 0.00000000000000E+00 0.00000000000000E+00 0.00000000000000E+00
0.00000000000000E+00 0.00000000000000E+00 0.00000000000000E+00 2.0689655172E-05 0.00000000000000E+00 0.00000000000000E+00
0.00000000000000E+00 0.00000000000000E+00 0.00000000000000E+00 0.00000000000000E+00 5.7692307692E-06 0.00000000000000E+00
0.00000000000000E+00 0.00000000000000E+00 0.00000000000000E+00 0.00000000000000E+00 0.00000000000000E+00 2.3076923077E-05
0 1 # simulation range
#1 # time function no
#0
#0 1
2 # number of entries
0 0
1 1
File added
This diff is collapsed.
import numpy as np
import matplotlib.pyplot as plt
npts = 3
nmemb = 10
for k in range(1):
data = np.loadtxt("output%03d.dat"%(k));
pts = data[0:npts,:];
mem = data[npts:,:];
#plt.plot(mem[:,0]+mem[:,3],mem[:,4]+mem[:,1]);
plt.plot(mem[:,0]+mem[:,3],mem[:,5]+mem[:,2]);
#plt.axis('scaled');
#plt.xlim([-1,1]);
#plt.ylim([-1,1]);
plt.pause(0.001);
plt.show();
#plt.clf()
\ No newline at end of file
/Users/ftrigaux/Documents/Beams/Cgebt2/bin/gebt
\ No newline at end of file
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "gcc-10 - Générer et déboguer le fichier actif",
"type": "cppdbg",
"request": "launch",
"program": "/Users/ftrigaux/Documents/Beams/Cgebt/src/gebt",
"args": ["/Users/ftrigaux/Documents/Beams/Cgebt/src/RotatingBeamSin.dat"],
"stopAtEntry": false,
"cwd": "${fileDirname}",
"environment": [],
"externalConsole": false,
"MIMode": "lldb"
}
]
}
\ No newline at end of file
{
"files.associations": {
"array": "c",
"compare": "c",
"functional": "c",
"istream": "c",
"ostream": "c",
"ranges": "c",
"tuple": "c",
"type_traits": "c",
"utility": "c",
"random": "c",
"*.tcc": "c",
"string": "c",
"optional": "c",
"system_error": "c",
"globaldatafun.h": "c",
"cio.h": "c"
},
"C_Cpp.errorSquiggles": "Enabled"
}
\ No newline at end of file
{
"tasks": [
{
"type": "cppbuild",
"label": "C/C++: gcc-10 générer le fichier actif",
"command": "/usr/local/bin/gcc-10",
"args": [
"-g",
"${file}",
"-o",
"${fileDirname}/${fileBasenameNoExtension}"
],
"options": {
"cwd": "${fileDirname}"
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
},
"detail": "Tâche générée par le débogueur."
},
{
"type": "cppbuild",
"label": "Run Make",
"command": "make",
"options": {
"cwd": "${fileDirname}"
},
"group": {
"kind": "build",
"isDefault": true
}
}
],
"version": "2.0.0"
}
\ No newline at end of file
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment