Title | Contributors |
---|---|
BatterySimulator |
Lingding Zhang, Yang Jiang |
Welcome to use this simulator!
To use this simulator, you should install OpenFOAM6 and ParaView5.4.0 on your computer as well.
This simulator is under GPLv3 which means you can use it for free. However, you cannot use it for any commercial purpose.
The simulator has been tested successfully under ubuntu-18.04.6 environment, please ensure your system environment is higher than this one(ubuntu-20 is also acceptable).
- Use
git clone
command to get the BatterySimulator folder or download the .zip file directly. - Open the folder and you will see two subfolders, GUI and SourceCode. If you just want to use the simulator, just ignore SourceCode folder.
- Make sure
make
module is installed on your computer correctly. If not, install it by commandsudo apt-get install make
. - Make sure OpenFOAM6 and ParaView5.4.0 are already installed on your computer correctly. If not, follow the steps on official site.
- Find the file /opt/openfoam6/etc/controlDict and use
sudo
command to open it. Find the linedimensionSet 1;
(You can usectrl+f
to locate), then change1
to0
and save it. - Open terminal under GUI folder and input
./BatterySimulator
, then you can use the simulator.
- If you have problems with running the simulator, below methods may help you
- Open terminal where you can see GUI folder, and input command
sudo chmod -R 777 GUI
. - Download Qt Designer or Qt Creator from Qt official site(more recent version ubuntu-18 and ubuntu-20 should already come with Qt Designer)
To use this simulator is very simple, you only need to follow the hints on the interfaces and start to create your own projects!
There are only a few things that need a bit more explanations:
- If you are the first time to run a project, you must click *Modify button on Geometry interface at least once even if you do not change parameters on this interface.
- The GUI embeds the linux terminal function. You don't need to input any command during the process, however, if you want to execute commands, you can do it.
- You can view your geometry through View Geometry once you clicked *Modify button on Geometry interface(This means related geometry files will be generated). This will open ParaView and later operations will be perforamed through ParaView instead of BatterySimulator.
- Once you generated related results files through Run/Resume button on Control interface, you can click View Results. This will open a new interface, and you can view kinds of graphs intuitively.
Any academic work using this code or derivatives thereof, Must cite the original paper that this code was released alongside.