Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions host-configs/LLNL/dane-toss_4_x86_64_ib-gcc@12.1.1.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ set(CMAKE_C_COMPILER "/usr/tce/packages/gcc/gcc-12.1.1-magic/bin/gcc" CACHE PATH

set(CMAKE_CXX_COMPILER "/usr/tce/packages/gcc/gcc-12.1.1-magic/bin/g++" CACHE PATH "")

set(CMAKE_Fortran_COMPILER "/usr/tce/packages/gcc/gcc-12.1.1-magic/bin/gfortran" CACHE PATH "")

set(CMAKE_CXX_FLAGS_RELEASE "-O3 -DNDEBUG" CACHE STRING "")

set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g -DNDEBUG" CACHE STRING "")
Expand All @@ -37,9 +39,10 @@ set(MPI_C_COMPILER "/usr/tce/packages/mvapich2/mvapich2-2.3.7-gcc-12.1.1-magic/b

set(MPI_CXX_COMPILER "/usr/tce/packages/mvapich2/mvapich2-2.3.7-gcc-12.1.1-magic/bin/mpicxx" CACHE PATH "")

set(MPIEXEC "srun" CACHE PATH "")
set(MPI_Fortran_COMPILER "/usr/tce/packages/mvapich2/mvapich2-2.3.7-gcc-12.1.1-magic/bin/mpif90" CACHE PATH "")

set(MPIEXEC_NUMPROC_FLAG "-n" CACHE PATH "")
set(MPIEXEC_EXECUTABLE "/usr/bin/srun" CACHE PATH "")
set(MPIEXEC_NUMPROC_FLAG "-n" CACHE STRING "")

#--------------------------------------------------------------------------------
# OpenMP
Expand Down
160 changes: 160 additions & 0 deletions inputFiles/Electrostatics/Electrostatics_alternative.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,160 @@
<?xml version="1.0" ?>

<Problem>

<Solvers>
<Electrostatics
name="halfcell"
discretization="FE1"
timeIntegrationOption="QuasiStatic"
fieldName="potential"
targetRegions="{Domain, SEIRegion}">
<LinearSolverParameters
directParallel="0"/>
</Electrostatics>

<SurfaceGenerator
name="SurfaceGen"
fractureRegion="SEIRegion"
targetRegions="{ Domain }"
initialRockToughness="1.0e10"
mpiCommOrder="1"/>
</Solvers>

<Mesh>
<InternalMesh
name="mesh1"
elementTypes="{C3D8}"
xCoords="{0, 10}"
yCoords="{0, 1}"
zCoords="{0, 1}"
nx="{2}"
ny="{1}"
nz="{1}"
cellBlockNames="{halfcellblock}"/>
</Mesh>

<Geometry>
<Box
name="currentCollector"
xMin="{ -0.01, -0.01, -0.01 }"
xMax="{ 0.01, 1.01, 1.01 }"/>

<Box
name="ground"
xMin="{ 9.99, -0.01, -0.01 }"
xMax="{ 10.01, 1.01, 1.01 }"/>

<Box
name="SEI"
xMin="{ 4.99, -0.01, -0.01 }"
xMax="{ 5.01, 1.01, 1.01 }"/>

<Box
name="electrolyte"
xMin="{5.01, -0.01, -0.01}"
xMax="{10.01, 1.01, 1.01}"/>
</Geometry>

<ElementRegions>
<CellElementRegion
name="Domain"
cellBlocks="{halfcellblock}"
materialList="{conductiveMaterial}"/>

<SurfaceElementRegion
name="SEIRegion"
defaultAperture="1.0e-6"
materialList="{nullModel}"/>
</ElementRegions>

<Constitutive>
<ElectroChemistryBase
name="conductiveMaterial"
defaultConductivity="100.0"/>

<NullModel
name="nullModel"/>
</Constitutive>

<NumericalMethods>
<FiniteElements>
<FiniteElementSpace
name="FE1"
order="1"/>
</FiniteElements>
</NumericalMethods>

<Outputs>
<VTK
name="vtkOutput"/>
</Outputs>

<Events
maxTime="1.0">

<SoloEvent
name="preInterface"
target="/Solvers/SurfaceGen"/>

<PeriodicEvent
name="solverApplication"
forceDt="1.0"
target="/Solvers/halfcell"/>

<PeriodicEvent
name="outputs"
timeFrequency="1.0"
target="/Outputs/vtkOutput"/>
</Events>

<FieldSpecifications>
<FieldSpecification
name="electrolyteConductivity"
initialCondition="1"
setNames="{electrolyte}"
objectPath="ElementRegions/Domain"
fieldName="conductiveMaterial_conductivity"
scale="10.0"/>

<FieldSpecification
name="groundPotential"
fieldName="potential"
objectPath="nodeManager"
scale="0.0"
setNames="{ground}"/>

<Traction
name="inputCurrent"
objectPath="faceManager"
tractionType="normal"
scale="-1.0"
functionName="NeumannTimeFunction"
setNames="{currentCollector}"/>

<FieldSpecification
name="sei"
initialCondition="1"
setNames="{ SEI }"
objectPath="faceManager"
fieldName="ruptureState"
scale="1"/>

<FieldSpecification
name="separableFace"
initialCondition="1"
setNames="{ SEI }"
objectPath="faceManager"
fieldName="isFaceSeparable"
scale="1"/>
</FieldSpecifications>

<Functions>
<TableFunction
name="NeumannTimeFunction"
inputVarNames="{time}"
coordinates="{ 0.0, 1.0}"
values="{ 0.0, -1.0}"/>
</Functions>

</Problem>
157 changes: 157 additions & 0 deletions inputFiles/Electrostatics/Electrostatics_base.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,157 @@
<?xml version="1.0" ?>

<Problem>

<Solvers>
<Electrostatics
name="halfcell"
discretization="FE1"
timeIntegrationOption="QuasiStatic"
fieldName="potential"
targetRegions="{Region1, Region2, SEIRegion}">
<LinearSolverParameters
directParallel="0"/>
</Electrostatics>

<SurfaceGenerator
name="SurfaceGen"
fractureRegion="SEIRegion"
targetRegions="{ Region1, Region2 }"
initialRockToughness="1.0e10"
mpiCommOrder="1"/>
</Solvers>

<Mesh>
<InternalMesh
name="mesh1"
elementTypes="{C3D8}"
xCoords="{0, 5, 10}"
yCoords="{0, 1}"
zCoords="{0, 1}"
nx="{5, 5}"
ny="{1}"
nz="{1}"
cellBlockNames="{electrode, electrolyte}"/>
</Mesh>

<Geometry>
<Box
name="currentCollector"
xMin="{ -0.01, -0.01, -0.01 }"
xMax="{ 0.01, 1.01, 1.01 }"/>

<Box
name="ground"
xMin="{ 9.99, -0.01, -0.01 }"
xMax="{ 10.01, 1.01, 1.01 }"/>

<Box
name="SEI"
xMin="{ 4.99, -0.01, -0.01 }"
xMax="{ 5.01, 1.01, 1.01 }"/>
</Geometry>

<ElementRegions>
<CellElementRegion
name="Region1"
cellBlocks="{electrode}"
materialList="{electrodeMaterial}"/>

<CellElementRegion
name="Region2"
cellBlocks="{electrolyte}"
materialList="{electrolyteMaterial}"/>

<SurfaceElementRegion
name="SEIRegion"
defaultAperture="1.0e-6"
materialList="{lithium}"/>
</ElementRegions>

<Constitutive>
<ElectroChemistryBase
name="electrodeMaterial"
defaultConductivity="100.0"/>

<ElectroChemistryBase
name="electrolyteMaterial"
defaultConductivity="10.0"/>

<ButlerVolmerInterface
name="lithium"
defaultReactivityCoefficient="1.0"/>
</Constitutive>

<NumericalMethods>
<FiniteElements>
<FiniteElementSpace
name="FE1"
order="1"/>
</FiniteElements>
</NumericalMethods>

<Outputs>
<VTK
name="vtkOutput"/>
</Outputs>

<Events
maxTime="1.0">

<SoloEvent
name="preInterface"
target="/Solvers/SurfaceGen"/>

<PeriodicEvent
name="solverApplication"
forceDt="1.0"
target="/Solvers/halfcell"/>

<PeriodicEvent
name="outputs"
timeFrequency="1.0"
target="/Outputs/vtkOutput"/>
</Events>

<FieldSpecifications>
<FieldSpecification
name="groundPotential"
fieldName="potential"
objectPath="nodeManager"
scale="0.0"
setNames="{ground}"/>

<Traction
name="inputCurrent"
objectPath="faceManager"
tractionType="normal"
scale="-1.0"
functionName="NeumannTimeFunction"
setNames="{currentCollector}"/>

<FieldSpecification
name="sei"
initialCondition="1"
setNames="{ SEI }"
objectPath="faceManager"
fieldName="ruptureState"
scale="1"/>

<FieldSpecification
name="separableFace"
initialCondition="1"
setNames="{ SEI }"
objectPath="faceManager"
fieldName="isFaceSeparable"
scale="1"/>
</FieldSpecifications>

<Functions>
<TableFunction
name="NeumannTimeFunction"
inputVarNames="{time}"
coordinates="{ 0.0, 1.0}"
values="{ 0.0, -1.0}"/>
</Functions>

</Problem>
Loading
Loading