Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
ElmerCSC
GitHub Repository: ElmerCSC/elmerfem
Path: blob/devel/fem/tests/BlockDomainsVtuParts/case.sif
5289 views
! Save a case with multiple blocks in several pieces using
! "Vtu Part Collection".
!
! P.R. 27.9.2019

Check Keywords warn

! Heating in different blocks
$h1=1.0  
$h2=2.0  
$h3=3.0  
$h4=4.0  

Header
  Mesh DB "." "spots"
  Include Path ""
  Results Directory ""
End

Simulation
  Max Output Level = 5
  Coordinate System = Cartesian
  Simulation Type = Transient
  Timestep Intervals = 3
  Timestep Sizes = 1.0
  Timestepping Method = implicit euler
  Steady State Max Iterations = 1
  Output Intervals = 1


  ! Partition Mesh = Logical True
  ! Partitioning Method = String "zoltan"
  Post File = case.vtu

  vtu: Output Directory = File "par"
  vtu: Vtu Part Collection = Logical True

! This will affect all save routines: vtu, scalars, line
!  Output Partitioning Directory = Logical True

  ! vtu: save bulk only = Logical True
  ! vtu: save boundaries only = Logical True
End

Constants
End

Body 1
  Name = "Body1"
  Equation = 1
  Material = 1
End

Body 2
  Name = "Body2"
  Body Force = 1
  Equation = 1
  Material = 1
End

Body 3
  Name = "Body3"
  Body Force = 2
  Equation = 1
  Material = 1
End

Body 4
  Name = "Body4"
  Body Force = 3
  Equation = 1
  Material = 1
End

Body 5
  Name = "Body5"
  Body Force = 4
  Equation = 1
  Material = 1
End

Equation 1
  Name = "Equation"
  Active Solvers = 1
End

Material 1
  Name = "Unity"
  Density = 1.0
  Heat Conductivity = 1.0
  Heat Capacity = 1.0
End

Body Force 1
  Name = "Heater1"
  Heat Source = $h1  
End

Body Force 2
  Name = "Heater2"
  Heat Source = $h2
End

Body Force 3
  Name = "Heater3"
  Heat Source = $h3
End

Body Force 4
  Name = "Heater4"
  Heat Source = $h4
End

Solver 1
  Equation = Heat Equation
  Procedure = "HeatSolve" "HeatSolver"
  Variable = Temperature
  Linear System Solver = Iterative
  Linear System Iterative Method = BiCGStab
  Linear System Max Iterations = 300
  Linear System Convergence Tolerance = 1.0e-08
  Linear System Preconditioning = ILU0
  Linear System Residual Output = 20
  Linear System Abort Not Converged = False

  Steady State Convergence Tolerance = 1.0e-05
  Nonlinear System Max Iterations = 1
  Nonlinear System Relaxation Factor = 1.0
End


Boundary Condition 1
  Name = "OuterSides"
  Target Boundaries = 1
  Temperature = Real 0
End

Boundary Condition 1
  Name = "RectSides"
  Target Boundaries = 2
End

Solver 1 :: Reference Norm = 1.83535988