-
- Downloads
Updates in weak and strong coupling test parameters for air domain
parent
e7be8b54
No related branches found
No related tags found
Showing
- dG3D/benchmarks/strongCouplingSMP/StrongCouplingEMTM.py 12 additions, 10 deletionsdG3D/benchmarks/strongCouplingSMP/StrongCouplingEMTM.py
- dG3D/benchmarks/weakCouplingSMP/EM_weakCoupling.py 5 additions, 4 deletionsdG3D/benchmarks/weakCouplingSMP/EM_weakCoupling.py
- dG3D/benchmarks/weakCouplingSMP/TM_weakCoupling.py 3 additions, 2 deletionsdG3D/benchmarks/weakCouplingSMP/TM_weakCoupling.py
- dG3D/benchmarks/weakCouplingSMP/run.py 2 additions, 2 deletionsdG3D/benchmarks/weakCouplingSMP/run.py
... | ... | @@ -12,7 +12,7 @@ import math |
# material law: SMP | ||
lawnum= 1 | ||
rho = 270. # material density (Kg/m^3) | ||
tinitial = 273.+25. # (K) | ||
tinitial = 273.+47. # (K) | ||
G=299.e6 # Shear modulus (Pa) | ||
Mu=0.29 # Poisson ratio | ||
alpha = beta=gamma=0. # parameter of anisotropy | ||
... | ... | @@ -58,12 +58,12 @@ centralAxis_z = 0. # Unit vector along central axis of inductor coil |
# material law: vacuum/free space region | ||
lawnumvac = 3 | ||
rhovac = 1.2 | ||
Gvac=156.e0 # Shear modulus | ||
Gvac=156.e1 # Shear modulus | ||
Muvac = 0.35 # Poisson ratio | ||
Evac= 2.0 * Gvac * (1.0 + Muvac) #youngs modulus | ||
alphavac = betavac = gammavac = 0. # parameter of anisotropy | ||
cpvac= 1012.*rhovac | ||
Kxvac=Kyvac=Kzvac= 26.e-3 # thermal conductivity tensor components | ||
cpvac= 1.e-12 #1012.*rhovac | ||
|
||
Kxvac=Kyvac=Kzvac= 0.0 #26.e-3 # thermal conductivity tensor components | ||
lxvac=lyvac=lzvac= 1.e-12 # electrical conductivity | ||
seebeckvac= 0. | ||
alphaThermvac= 0.0 # thermal dilatation | ||
... | ... | @@ -73,6 +73,7 @@ mag_mu_x_vac = mag_mu_y_vac = mag_mu_z_vac = mag_r_vac * mag_mu_0 # mag permeabi |
magpot0_x_vac = magpot0_y_vac = magpot0_z_vac = 0.0 # initial magnetic potential | ||
useFluxT=True | ||
evaluateCurlField = True; | ||
# geometry | ||
meshfile="undeformedSMPFullDomain.msh" # name of mesh file | ||
... | ... | @@ -81,10 +82,10 @@ meshfile="undeformedSMPFullDomain.msh" # name of mesh file |
sol = 2 # Gmm=0 (default) Taucs=1 PETsc=2 | ||
soltype = 1 # StaticLinear=0 (default) StaticNonLinear=1 | ||
#EMncycles = 5; # num of sinusoidal cycles of EM frequency application | ||
nstep = 8000 # 8*EMncycles # number of step (used only if soltype=1) | ||
nstep = 80 # 8*EMncycles # number of step (used only if soltype=1) | ||
ftime = 5.e-3 # EMncycles/freq; # according to characteristic time | ||
#EMftime = EMncycles/freq # Final time (used only if soltype=1) | ||
tol=1.e-3 # relative tolerance for NR scheme (used only if soltype=1) | ||
tol=1.e-6 # relative tolerance for NR scheme (used only if soltype=1) | ||
nstepArch=1 # Number of step between 2 archiving (used only if soltype=1) | ||
fullDg = 0 #O = CG, 1 = DG | ||
beta1 = 1000. | ||
... | ... | @@ -96,7 +97,7 @@ eqRatio =1.e8 |
# material law for smp | ||
lawsmp = LinearElecMagTherMechDG3DMaterialLaw(lawnum,rho,E_matrix,E_matrix,E_matrix,Mu,Mu,Mu,G,G,G,alpha,beta,gamma, | ||
tinitial,Kx,Ky,Kz,alphaTherm,alphaTherm,alphaTherm,lx,ly,lz,seebeck,cp,v0, mag_mu_x, mag_mu_y, mag_mu_z, magpot0_x, | ||
magpot0_y, magpot0_z, Irms, freq, nTurnsCoil, coilLx, coilLy, coilLz, coilW,useFluxT) | ||
magpot0_y, magpot0_z, Irms, freq, nTurnsCoil, coilLx, coilLy, coilLz, coilW,useFluxT,evaluateCurlField) | ||
#lawsmp.setUseBarF(True) | ||
... | ... | @@ -104,14 +105,14 @@ magpot0_y, magpot0_z, Irms, freq, nTurnsCoil, coilLx, coilLy, coilLz, coilW,useF |
lawind = LinearElecMagInductorDG3DMaterialLaw(lawnumind,rhoind,Eind,Eind,Eind,Muind,Muind,Muind,Gind,Gind,Gind,alphaind,betaind,gammaind, | ||
tinitial,Kxind,Kyind,Kzind,alphaThermind,alphaThermind,alphaThermind,lxind,lyind,lzind,seebeckind,cpind,v0ind, mag_mu_x_ind, mag_mu_y_ind, mag_mu_z_ind, | ||
magpot0_x_ind,magpot0_y_ind, magpot0_z_ind, Irms, freq, nTurnsCoil, coilLx, coilLy, coilLz, coilW, | ||
Centroid_x,Centroid_y,Centroid_z,centralAxis_x,centralAxis_y,centralAxis_z,useFluxT) | ||
Centroid_x,Centroid_y,Centroid_z,centralAxis_x,centralAxis_y,centralAxis_z,useFluxT,evaluateCurlField) | ||
#lawind.setUseBarF(True) | ||
#material law for free space (vacuum) | ||
lawvac = LinearElecMagTherMechDG3DMaterialLaw(lawnumvac,rhovac,Evac,Evac,Evac,Muvac,Muvac,Muvac,Gvac,Gvac,Gvac,alphavac,betavac,gammavac,tinitial, | ||
Kxvac,Kyvac,Kzvac,alphaThermvac,alphaThermvac,alphaThermvac,lxvac,lyvac,lzvac,seebeckvac,cpvac,v0vac, mag_mu_x_vac, mag_mu_y_vac, mag_mu_z_vac, magpot0_x_vac, | ||
magpot0_y_vac, magpot0_z_vac, Irms, freq, nTurnsCoil, coilLx, coilLy, coilLz, coilW,useFluxT) | ||
magpot0_y_vac, magpot0_z_vac, Irms, freq, nTurnsCoil, coilLx, coilLy, coilLz, coilW,useFluxT,evaluateCurlField) | ||
#lawvac.setUseBarF(True) | ||
... | ... | @@ -168,7 +169,7 @@ mysolver.snlData(nstep,ftime,tol,1.e-9)#forsmp |
mysolver.options("-ksp_type preonly") | ||
mysolver.options("-pc_type lu") | ||
mysolver.stepBetweenArchiving(nstepArch) | ||
mysolver.snlManageTimeStep(25, 3, 2, 10) | ||
mysolver.snlManageTimeStep(25, 10, 2, 10) | ||
# BC | ||
finalDisp = 0.01; | ||
... | ... | @@ -250,6 +251,7 @@ mysolver.internalPointBuildView("js0_z",IPField.INDUCTORSOURCEVECTORFIELD_Z, 1, |
mysolver.archivingIPOnPhysicalGroup("Volume",SMPfield, IPField.TEMPERATURE,IPField.MEAN_VALUE,nstepArch); | ||
mysolver.archivingIPOnPhysicalGroup("Volume",SMPfield, IPField.VOLTAGE,IPField.MEAN_VALUE,nstepArch); | ||
mysolver.archivingIPOnPhysicalGroup("Volume",SMPfield, IPField.EMFIELDSOURCE,IPField.MEAN_VALUE,nstepArch); | ||
mysolver.archivingForceOnPhysicalGroup("Face", SurfSmp, 3, 1); | ||
mysolver.archivingForceOnPhysicalGroup("Face", SurfSmp, 4, 1); | ||
... | ... |