Skip to content

Commit eb8f4ca

Browse files
authored
Update LPC3D.py
1 parent b962f53 commit eb8f4ca

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

LPC3D.py

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
In this model, bulk, carbon electrode, and full supercapacitor are simulated and their structures are represented as tridimensional set of inter-connected
1010
discrete sites, separated by a lattice spacing, "a".
1111
12-
To execute the program, you have to launch it with an input file (lattice_gas.inpt): python3 3D_Lattice_SC.py.
13-
You can find more informations about setting up the environment for CPU and GPU calculations in the manual software in Github page:
12+
To execute the program, you have to launch it with an input file: python3 LPC3D.py -i filename.
13+
You can find more informations about setting up the environment for CPU and GPU calculations in the manual software in Github.
1414
1515
The structure of the input file :
1616
@@ -29,28 +29,30 @@
2929
12th line:
3030
- no 12th line if equi=0
3131
- if equi=1: number of steps for the equilibration process (> Nstep)
32-
13th line: number of blocks (> Nblocks)
32+
13th line: electrode nature (porous-carbon or particles) (> elec−nature)
33+
– if elec-nature is particles, give a xyz file for ”B” (bulk) and ”P” particles (> partcile file)
34+
14th line: number of blocks (> Nblocks)
3335
- We divide the simulation lattice into blocks along the z-axis
3436
PS: All blocks should have the same size
3537
After this line, the uploaded files differ depending on the block nature. Block nature: bulk or electrode
3638
3739
##################################### Bulk type simulations#########################################
3840
3941
if N blocks =1:
40-
14th line: An empty line
41-
15th line: block nature (> bulk)
42-
16th line: xmin,xmax,ymin,ymax,zmin,zmax coordinates of the block
43-
17th line: density of the bulk (> dens_bulk)
44-
18th line: frequency of the bulk (in ppm) (> Nfreq)
42+
15th line: An empty line
43+
16th line: block nature (> bulk)
44+
17th line: xmin,xmax,ymin,ymax,zmin,zmax coordinates of the block
45+
18th line: density of the bulk (> dens_bulk)
46+
19th line: frequency of the bulk (in ppm) (> Nfreq)
4547
4648
##################################### Electrode type simulations#########################################
4749
4850
if N blocks =1:
49-
14th line: An empty line
50-
15th line: block nature (> electrode)
51-
16th line: electrode is filled with fluid or not? 0 if no, 1 if yes (> fielectrode)
52-
17th line: xmin,xmax,ymin,ymax,zmin,zmax coordinates of the block
53-
18th line: name of the file with pore size distribution (> namepsd)
51+
15th line: An empty line
52+
16th line: block nature (> electrode)
53+
17th line: electrode is filled with fluid or not? 0 if no, 1 if yes (> fielectrode)
54+
18th line: xmin,xmax,ymin,ymax,zmin,zmax coordinates of the block
55+
19th line: name of the file with pore size distribution (> namepsd)
5456
The first column should be in ˚A, the second column is the probability.
5557
19th line: name of the file with pores size as a function of density and frequency (> name_poresize_dens_freq) The first column
5658
should be in ˚A, the second column is the densities of the fluid and the third column is the frequencies and should be in ppm.

0 commit comments

Comments
 (0)