This tutorial is divided into the following sections:
This tutorial is used to show how to set up a battery pack (battery system connected in parallel/series pattern) simulation in Ansys Fluent. All the three submodels are available for a pack simulation.
This tutorial illustrates how to do the following:
Set up a battery pack simulation using the NTGK battery submodel in Ansys Fluent
Define active, tab, and busbar conductive zones
Define electric contacts for the contact surface and external connectors
Define electric conductivity for the active material using the user-defined scalars
Define electric conductivity for the passive material using the user-defined function
Obtain the battery pack simulation results and perform postprocessing activities
Most problem setup procedures are similar to the single cell simulation. The differences in the problem setup will be emphasized in this tutorial.
This tutorial is written with the assumption that you have completed the introductory tutorials found in this manual and that you are familiar with the Ansys Fluent outline view and ribbon structure. Some steps in the setup and solution procedure will not be shown explicitly.
This problem considers a small 1P3S battery pack, that is, the three battery cells connected in series. A schematic of the problem is shown in Figure 32.1: Schematic of the Battery Pack Problem.
The discharging process of the battery pack is occurring under constant power of 200 W. The nominal cell capacity is 14.6 Ah.
You will create a material for the battery cells (an active material) and define the electric conductivity for the active material using the user-defined scalars (UDS). You will create a material for busbars and tabs (a passive material) and define the electric conductivity for the passive material using the provided user-defined function (UDF). You will use the same material for busbars and tabs.
In this tutorial, you will use the NTGK battery submodel to simulate the discharging process under constant power conditions.
The following sections describe the setup and solution steps for this tutorial:
Download the
battery_pack.zipfile here .Unzip
battery_pack.zipto your working directory.The mesh file
1P3S_battery_pack.msh.h5can be found in the folder.Use the Fluent Launcher to start Ansys Fluent.
Select Solution in the top-left selection list to start Fluent in Solution Mode.
Select 3D under Dimension.
Enable Double Precision under Options.
Set Solver Processes to
1under Parallel (Local Machine).
Read the mesh file
1P3S_battery_pack.msh.h5.File → Read → Mesh...
When prompted, browse to the location of the
1P3S_battery_pack.msh.h5and select the file.Once you read in the mesh, it is displayed in the embedded graphics windows.
Check the mesh.
Domain → Mesh → Check → Perform Mesh Check
Scale the mesh.
Domain → Mesh → Scale
In the Scale Mesh dialog box, select Specify Scaling Factors in the Scaling group.
Enter
0.1for X, Y and Z in the Scaling Factors group.Click Scale and close the Scale Mesh dialog box.

Right click in the graphics window and select Refresh Display.
Click the Fit to Window icon,
, to fit and center the mesh in the graphics window.
Check the mesh.
Domain → Mesh → Perform Mesh Check
The following sections describe the setup steps for this tutorial:
Enable a time-dependent calculation by selecting Transient in the General task page (Solver group).
Setup →
General
→ TransientEnable the battery model.
Physics → Models → More → Battery Model
In the Battery Model dialog box, select Enable Battery Model.
The dialog box expands to display the battery model’s settings.
Once you enable the battery model, the Energy equation will be automatically enabled in order to solve for the temperature field.
Under the Model Options tab (Figure 32.2: Model Options), configure the following battery operation conditions:
Under E-Chemistry Models, enable NTGK/DCIR Empirical Model.
In the Electrical Parameters group, retain the default value of
14.6 Ahfor Nominal Cell Capacity.Select Enable Joule heat in passive zones in the Energy Source Options group.
Enable Specified System Power in the Solution Options group and set System Power to
200 W.
Under the Model Parameters tab, retain the default settings for Y and U coefficients.
Under the Conductive Zones tab (Figure 32.3: Conductive Zones), configure the following settings:
Group
Control or List
Value or Selection
Active Components
Zone (s)
cell_1
cell_2
cell_3
Passive Components
Zone (s)
n_tabzone_1
n_tabzone_2
n_tabzone_3
p_tabzone_1
p_tabzone_2
p_tabzone_3
bar1
bar2
Under the Electric Contacts tab (Figure 32.4: Electric Contacts), configure the contact surface and external connector settings as follows:
Group
Control or List
Value or Selection
External Connectors
Negative Tab
tab_n
Positive Tab
tab_p
The corresponding current or voltage boundary condition will be applied to those boundaries automatically.
Click the Print Battery System Connection Information button.
Ansys Fluent prints the battery connection information in the console window:
Battery Network Zone Information: ------------------------------------- Battery 1s1p Active zone: cell_1 Battery 2s1p Active zone: cell_2 Battery 3s1p Active zone: cell_3 Passive zone 0: n_tabzone_1 Passive zone 1: p_tabzone_1 bar1 n_tabzone_2 Passive zone 2: p_tabzone_2 bar2 n_tabzone_3 Passive zone 3: p_tabzone_3 ------------------------------------- Number of battery series stages =3; Number of batteries in parallel per series stage=1 ****************END OF BATTERY CONNECTION INFO**************Verify that the connection information is correct. If an error message appears or if the connections are not what you want, redefine the conductive zones in the Conductive Zones tab (Figure 32.3: Conductive Zones). Repeat this process until you confirm that the battery connections are set correctly.
Important: To set a valid connection, you must connect the negative tab to the positive tab through conductive zones.
Click to close the Battery Model dialog box.
In the background, Fluent automatically hooks all the necessary UDFs for the problem.
Click to close the Information dialog box.
Define the new e_material material for all the battery’s cells and busbar_material material for the battery pack’s busbars and tabs.
Create the electric material.
Setup → Materials → Solid → aluminum
Edit...

In the Create/Edit Materials dialog box, enter
e_materialfor Name andefor Chemical Formula.Set Thermal Conductivity to
20.Under Properties, ensure that defined-per-uds is selected from the Electrical Conductivity drop-down list and click Edit... next to Electrical Conductivity.
In the UDS Diffusion Coefficients dialog box, set the constant value of 1.0 e6 for the both user-defined scalars.

Select uds-0 in the User-Defined Scalar Diffusion list.
Retain constant from the Coefficient drop-down list.
Set
1.0 e6[1/ohm-m] for Coefficient.In a similar way, set uds-1 to
1.0 e6[1/ohm-m] and click OK to close the UDS Diffusion Coefficients dialog box.
In the Question dialog box, click No to retain aluminum and add the new material (e_material) to the materials list.
Ensure that
e_material (e)is selected from the Fluent Solid Materials drop-down list.Close the Create/Edit Material dialog box.
Create the busbar_material material for busbars and tabs by modifying e-material you have created in the previous step.
Setup → Materials → Solid → e-material
Edit...

As stated in the problem description, you will use the same material for busbars and tabs.
Note: If the busbar and tab materials are different, you need to define the two different materials and assign them to the busbars and tabs, respectively.
In the Create/Edit Materials dialog box, enter
busbar_materialfor Name andbusfor Chemical Formula.Set Thermal Conductivity to
20.Enter a value of
3.541 e7[1/ohm-m] for Electrical Conductivity.Click Change/Create.
In the Question dialog box, click No to retain e_material and add the new material (busbar_material) to the materials list.
Ensure that
busbar_material (bus)is selected from the Fluent Solid Materials drop-down list.Close the Create/Edit Materials dialog box.
Assign e_material to all the cell zones and busbar_material to all the tabs and busbars.
Assign e_material to the cell_1 cell zone.
Setup →
Cell Zone
Conditions →
cell_1
→ Edit...In the Solid dialog box, select
e_materialfrom the Material Name drop-down list.Click and close the Solid dialog box.
Copy the cell zone condition for the cell_1 zone to the cell_2 and cell_3 cell zones.
Setup →
Cell Zone
Conditions →
cell_1
→ Copy...In the Copy Conditions dialog box, select cell_1 in the From Cell Zone list.
In the To Cell Zones list, select cell_2 and cell_3.
Click Copy.
Click in the Question dialog box to copy the cell zone conditions and close the Copy Conditions dialog box.
In a similar manner, assign busbar_material to all the tabs and busbars cell zones.
Define the thermal boundary conditions for all walls for the cells, busbars, and tabs. The boundary conditions for the two UDSs have been set automatically when you defined the cell zone conditions.
Set the convection boundary condition for wall-cell_1.
Physics → Zones → Boundaries
In the Boundary Conditions task page, select wall-cell_1 and click Edit....
In the Wall dialog box, under the Thermal tab, configure the following settings:
Under Thermal Conditions, enable Convection.
Set Heat Transfer Coefficient to
5 [w/m2K].Set Free Stream Temperature to
300 [K].Click and close the Wall dialog box.
Copy the boundary conditions for wall-cell_1 to wall-cell_2, wall-cell_3 and all the tab and busbar wall zones (all boundary zones that have names starting with the "wall" string and containing the "bar" or "tabzone" string).
Setup →
Boundary
Conditions →
wall-cell_1
→ Copy...
Turn off the flow and turbulence equations.
Solution → Controls → Equations...
In the Equations dialog box, deselect
FlowandTurbulencefrom the Equation selection list.Click .
Remove the convergence criteria to ensure that automatic convergence checking does not occur.
Solution → Reports → Residuals...
In the Residual Monitors dialog box, enable .
Select none from the Convergence Criterion drop-down list.
Click .
Create a surface report definition for the voltage at the positive tab.
Solution → Reports → Definitions → New → Surface Report → Area-Weighted Average...

In the Surface Report Definition dialog box, enter
surf-mon-1for Name.Select Battery Variables... and Passive Zone Potential from the Field Variable drop-down lists.
From the Surfaces selection list, select tab_p.
In the Create group box, enable Report Plot and Print to Console.
Click to save the surface report definition and close the Surface Report Definition dialog box.
Modify the attributes of the plot axes.
Solution → Monitors → Report Plots → surf-mon-1-rplot
Edit...
In the Edit Report Plot dialog box, under the Plot Window group box, click the button to open the Axes dialog box.
Select the X axis and set Precision to
0.Click .
Select the Y axis and set Precision to
2.Click and close the Axes dialog box.
Note: You must click Apply to save the modified settings for each axis.
Ensure that time-step is selected from the Get Data Every drop-down list.
Click OK to close the Edit Report Plot dialog box.
Create a volume report definition to monitor the maximum temperature in the domain.
Solution → Reports → Definitions → New → Volume Report → Max...

In the Volume Report Definition dialog box, enter
vol-mon-1for Name.Select Temperature... and Static Temperature from the Field Variable drop-down lists.
From the Cell Zones selection list, select all zones.
In the Create group box, enable Report Plot and Print to Console.
Click to save the volume report definition settings and close the Volume Report Definition dialog box.
Modify the attributes of the plot axes.
Solution → Monitors → Report Plots → vol-mon-1-rplot
Edit...
In the Edit Report Plot dialog box, under the Plot Window group box, click the button to open the Axes dialog box.
Select the X axis and set Precision to
0.Click .
Select the Y axis and set Precision to
2.Click and close the Axes dialog box.
Ensure that time-step is selected from the Get Data Every drop-down list.
Click OK to close the Edit Report Plot dialog box.
Save the case file (
1P3S_battery_pack.cas.h5).File → Write → Case...
Initialize the field variables using the Standard Initialization method.
Solution →
InitializationRetain the selection of Standard from the Initialization Methods group box.
Click Initialize.
Note: Warning messages are printed in the Fluent console informing you about interior zones between different solids. Such messages appear when two adjacent solid zones separated by an interior face type are using two different materials. The message suggests using the mesh/modify-zones/slit-interior-between-diff-solids text command to slit the interior zone between solid zones of differing materials to create a wall/wall-shadow interfaces. In general, the material property interpolation at wall/wall-shadow is more accurate if different materials are used at two sides of an interface. However, the battery model is implemented in such a way that both treatments are equivalent, and such messages could be ignored..
You do not need to modify the Initial Values in the Solution Initialization task page, because these values are not used for initialization. The Ansys Fluent solver automatically computes the initial condition for UDS0 and UDS1.
Run the simulation.
Solution → Run Calculation
Set Time Step Size to
30seconds and No. of Time Steps to50.Click Calculate and run the simulation up to 1500 seconds.
The residual plot, the history of the voltage at the positive tab and the history of the maximum temperature in the domain are shown in Figure 32.5: Residual History of the Simulation, Figure 32.6: Surface Report Plot of Discharge Curve at 200W, and Figure 32.7: Volume Report Plot of Maximum Temperature in the Domain, respectively.
Save the case and data files (
1P3S_battery_pack.cas.h5and1P3S_battery_pack.dat.h5).File → Write → Case & Data...
In this section, postprocessing options for the MSMD battery model solution are presented.
Display the vector plot of current density.
Results → Graphics → Vectors → New...

Enter
vector-current-densfor Vector NameIn the Vectors dialog box, select current-density-j from the Vectors of drop-down list.
Select Battery Variables... and Current Magnitude from the Color by drop-down list.
Click the button next to the Surfaces filter and from the drop-down list, select Surface Type (under Group By).
From the Surfaces selection list, select Wall.
The surfaces of the "wall" type are automatically selected in the Surfaces list.
In the Options group, enable Draw Mesh and set the mesh display options as desired.
Select arrow from the Style drop-down list.
Set Scale to
0.003.Click Vector Options....
In the Vector Options dialog box, enable Fixed Length.

All vectors in your plot will be displayed with the same lengths.
Set Scale Head to
0.1.Click Apply and close the Vector Options dialog box.
Click Save/Display and close the Vectors dialog box.
Note: Use the Headlight and Lighting display options under the View ribbon tab to manipulate the graphics display.
Display the contour plot of the temperature.
Results → Graphics → Contours → New...

Enter
contour-tempfor Contour Name.Select Banded in the Coloring group box.
From the Contours of drop-down list, select Temperature... and Static Temperature.
Click the button next to the Surfaces filter and from the drop-down list, select Surface Type (under Group By).
From the Surfaces selection list, select Wall.
Click Save/Display and close the Contours dialog box.
In a similar manner, display the contour of Ohmic heat source.
Results → Graphics → Contours → New...

Enter
contour-ohmic-sourcefor Contour Name.Select Banded in the Coloring group box.
From the Contours of drop-down list, select Battery Variables... and Joule Heat Source.
From the Surfaces selection list, select Wall.
Click Save/Display and close the Contours dialog box.
In a similar manner, display the contour of the total heat source.
Results → Graphics → Contours → New...

Enter
contour-total-sourcefor Contour Name.Select Banded in the Coloring group box.
From the Contours of drop-down list, select Battery Variables... and Total Heat Source.
From the Surfaces selection list, select Wall.
Click Save/Display and close the Contours dialog box.
Save the case file (
1P3S_battery_pack.cas.h5).File → Write → Case...
This tutorial has demonstrated the use of the MSMD battery model to perform electrochemical and heat transfer simulations for battery packs. You have learned how to set up and solve the problem for the battery pack of the 1P3S configuration using the NTGK Battery submodel. You have also learned some of the postprocessing capabilities available in the MSMD battery model.










