update dg-twin

main
harvo 1 year ago
parent d37d550afa
commit bfb7fa29c9

1
.gitignore vendored

@ -12,3 +12,4 @@
*.sta *.sta
**/output/ **/output/
ABQcaeK.0.00.dmp ABQcaeK.0.00.dmp
*.odb

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -0,0 +1,22 @@
*Heading
** Job name: Thermal-2 Model name: Model-1-s2
** Generated by: Abaqus/CAE 2019
*Preprint, echo=NO, model=NO, history=NO, contact=NO
*Restart, read, step=1
** ----------------------------------------------------------------
**
** STEP: Welding-2
**
*Step, name=Welding-2, nlgeom=NO, inc=100000
*Heat Transfer, end=PERIOD, deltmx=1500.
0.1, 2., 0.01, 0.2,
**
** OUTPUT REQUESTS
**
*Restart, write, frequency=0
**
** FIELD OUTPUT: F-Output-1
**
*Output, field, variable=PRESELECT
*Output, history, frequency=0
*End Step

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -0,0 +1,27 @@
SUBROUTINE DFLUX(FLUX,SOL,KSTEP,KINC,TIME,NOEL,NPT,COORDS,JLTYP, TEMP, PRESS, SNAME)
INCLUDE 'ABA_PARAM.INC'
DIMENSION COORDS(3),FLUX(2),TIME(2)
CHARACTER*80 SNAME
real U,AI,v,yita,R0,qm
U=16.5
AI=60.
v=250./60.
yita=0.75
R0=5.
qm=yita*U*AI*1000./3.14/R0/R0
dx=v*TIME(1)
dy=0.
rr= (COORDS(1)-dx)**2 + (COORDS(2)-dy)**2
FLUX(1)=3.*qm*exp(-3.*rr/R0/R0)
! write(*,*) time,dx
! write(*,*) COORDS,rr
! write(*,*) FLUX
! write(*,*)
RETURN
END

Binary file not shown.

@ -0,0 +1,234 @@
# -*- coding: mbcs -*-
from part import *
from material import *
from section import *
from assembly import *
from step import *
from interaction import *
from load import *
from mesh import *
from optimization import *
from job import *
from sketch import *
from visualization import *
from connectorBehavior import *
mdb.jobs['Thermal'].setValues(userSubroutine=
'C:\\Users\\OPTX\\Downloads\\Digital-Twin\\substructure\\dflux.for')
mdb.jobs['Thermal'].submit(consistencyChecking=OFF)
mdb.jobs['Thermal']._Message(STARTED, {'phase': BATCHPRE_PHASE,
'clientHost': 'DESKTOP-21KKJMM', 'handle': 0, 'jobName': 'Thermal'})
mdb.jobs['Thermal']._Message(ODB_FILE, {'phase': BATCHPRE_PHASE,
'file': 'C:\\Users\\OPTX\\Downloads\\Digital-Twin\\substructure\\Thermal.odb',
'jobName': 'Thermal'})
mdb.jobs['Thermal']._Message(COMPLETED, {'phase': BATCHPRE_PHASE,
'message': 'Analysis phase complete', 'jobName': 'Thermal'})
mdb.jobs['Thermal']._Message(STARTED, {'phase': STANDARD_PHASE,
'clientHost': 'DESKTOP-21KKJMM', 'handle': 4980, 'jobName': 'Thermal'})
mdb.jobs['Thermal']._Message(STEP, {'stepName': 'this is a welding step',
'phase': STANDARD_PHASE, 'stepId': 1, 'jobName': 'Thermal'})
mdb.jobs['Thermal']._Message(ODB_FRAME, {'phase': STANDARD_PHASE, 'step': 0,
'frame': 0, 'jobName': 'Thermal'})
mdb.jobs['Thermal']._Message(MEMORY_ESTIMATE, {'phase': STANDARD_PHASE,
'jobName': 'Thermal', 'memory': 46.0})
mdb.jobs['Thermal']._Message(PHYSICAL_MEMORY, {'phase': STANDARD_PHASE,
'physical_memory': 16347.0, 'jobName': 'Thermal'})
mdb.jobs['Thermal']._Message(MINIMUM_MEMORY, {'minimum_memory': 23.0,
'phase': STANDARD_PHASE, 'jobName': 'Thermal'})
mdb.jobs['Thermal']._Message(STATUS, {'totalTime': 0.1, 'attempts': 1,
'timeIncrement': 0.1, 'increment': 1, 'stepTime': 0.1, 'step': 1,
'jobName': 'Thermal', 'severe': 0, 'iterations': 8,
'phase': STANDARD_PHASE, 'equilibrium': 8})
mdb.jobs['Thermal']._Message(ODB_FRAME, {'phase': STANDARD_PHASE, 'step': 0,
'frame': 1, 'jobName': 'Thermal'})
mdb.jobs['Thermal']._Message(STATUS, {'totalTime': 0.2, 'attempts': 1,
'timeIncrement': 0.1, 'increment': 2, 'stepTime': 0.2, 'step': 1,
'jobName': 'Thermal', 'severe': 0, 'iterations': 5,
'phase': STANDARD_PHASE, 'equilibrium': 5})
mdb.jobs['Thermal']._Message(ODB_FRAME, {'phase': STANDARD_PHASE, 'step': 0,
'frame': 2, 'jobName': 'Thermal'})
mdb.jobs['Thermal']._Message(STATUS, {'totalTime': 0.3, 'attempts': 1,
'timeIncrement': 0.1, 'increment': 3, 'stepTime': 0.3, 'step': 1,
'jobName': 'Thermal', 'severe': 0, 'iterations': 4,
'phase': STANDARD_PHASE, 'equilibrium': 4})
mdb.jobs['Thermal']._Message(ODB_FRAME, {'phase': STANDARD_PHASE, 'step': 0,
'frame': 3, 'jobName': 'Thermal'})
mdb.jobs['Thermal']._Message(STATUS, {'totalTime': 0.4, 'attempts': 1,
'timeIncrement': 0.1, 'increment': 4, 'stepTime': 0.4, 'step': 1,
'jobName': 'Thermal', 'severe': 0, 'iterations': 4,
'phase': STANDARD_PHASE, 'equilibrium': 4})
mdb.jobs['Thermal']._Message(ODB_FRAME, {'phase': STANDARD_PHASE, 'step': 0,
'frame': 4, 'jobName': 'Thermal'})
mdb.jobs['Thermal']._Message(STATUS, {'totalTime': 0.55, 'attempts': 1,
'timeIncrement': 0.15, 'increment': 5, 'stepTime': 0.55, 'step': 1,
'jobName': 'Thermal', 'severe': 0, 'iterations': 4,
'phase': STANDARD_PHASE, 'equilibrium': 4})
mdb.jobs['Thermal']._Message(ODB_FRAME, {'phase': STANDARD_PHASE, 'step': 0,
'frame': 5, 'jobName': 'Thermal'})
mdb.jobs['Thermal']._Message(STATUS, {'totalTime': 0.75, 'attempts': 1,
'timeIncrement': 0.2, 'increment': 6, 'stepTime': 0.75, 'step': 1,
'jobName': 'Thermal', 'severe': 0, 'iterations': 3,
'phase': STANDARD_PHASE, 'equilibrium': 3})
mdb.jobs['Thermal']._Message(ODB_FRAME, {'phase': STANDARD_PHASE, 'step': 0,
'frame': 6, 'jobName': 'Thermal'})
mdb.jobs['Thermal']._Message(STATUS, {'totalTime': 0.95, 'attempts': 1,
'timeIncrement': 0.2, 'increment': 7, 'stepTime': 0.95, 'step': 1,
'jobName': 'Thermal', 'severe': 0, 'iterations': 4,
'phase': STANDARD_PHASE, 'equilibrium': 4})
mdb.jobs['Thermal']._Message(ODB_FRAME, {'phase': STANDARD_PHASE, 'step': 0,
'frame': 7, 'jobName': 'Thermal'})
mdb.jobs['Thermal']._Message(STATUS, {'totalTime': 1.15, 'attempts': 1,
'timeIncrement': 0.2, 'increment': 8, 'stepTime': 1.15, 'step': 1,
'jobName': 'Thermal', 'severe': 0, 'iterations': 3,
'phase': STANDARD_PHASE, 'equilibrium': 3})
mdb.jobs['Thermal']._Message(ODB_FRAME, {'phase': STANDARD_PHASE, 'step': 0,
'frame': 8, 'jobName': 'Thermal'})
mdb.jobs['Thermal']._Message(STATUS, {'totalTime': 1.35, 'attempts': 1,
'timeIncrement': 0.2, 'increment': 9, 'stepTime': 1.35, 'step': 1,
'jobName': 'Thermal', 'severe': 0, 'iterations': 4,
'phase': STANDARD_PHASE, 'equilibrium': 4})
mdb.jobs['Thermal']._Message(ODB_FRAME, {'phase': STANDARD_PHASE, 'step': 0,
'frame': 9, 'jobName': 'Thermal'})
mdb.jobs['Thermal']._Message(STATUS, {'totalTime': 1.55, 'attempts': 1,
'timeIncrement': 0.2, 'increment': 10, 'stepTime': 1.55, 'step': 1,
'jobName': 'Thermal', 'severe': 0, 'iterations': 3,
'phase': STANDARD_PHASE, 'equilibrium': 3})
mdb.jobs['Thermal']._Message(ODB_FRAME, {'phase': STANDARD_PHASE, 'step': 0,
'frame': 10, 'jobName': 'Thermal'})
mdb.jobs['Thermal']._Message(STATUS, {'totalTime': 1.75, 'attempts': 1,
'timeIncrement': 0.2, 'increment': 11, 'stepTime': 1.75, 'step': 1,
'jobName': 'Thermal', 'severe': 0, 'iterations': 4,
'phase': STANDARD_PHASE, 'equilibrium': 4})
mdb.jobs['Thermal']._Message(ODB_FRAME, {'phase': STANDARD_PHASE, 'step': 0,
'frame': 11, 'jobName': 'Thermal'})
mdb.jobs['Thermal']._Message(STATUS, {'totalTime': 1.95, 'attempts': 1,
'timeIncrement': 0.2, 'increment': 12, 'stepTime': 1.95, 'step': 1,
'jobName': 'Thermal', 'severe': 0, 'iterations': 4,
'phase': STANDARD_PHASE, 'equilibrium': 4})
mdb.jobs['Thermal']._Message(ODB_FRAME, {'phase': STANDARD_PHASE, 'step': 0,
'frame': 12, 'jobName': 'Thermal'})
mdb.jobs['Thermal']._Message(ODB_FRAME, {'phase': STANDARD_PHASE, 'step': 0,
'frame': 13, 'jobName': 'Thermal'})
mdb.jobs['Thermal']._Message(STATUS, {'totalTime': 2.0, 'attempts': 1,
'timeIncrement': 0.0500000000000002, 'increment': 13, 'stepTime': 2.0,
'step': 1, 'jobName': 'Thermal', 'severe': 0, 'iterations': 2,
'phase': STANDARD_PHASE, 'equilibrium': 2})
mdb.jobs['Thermal']._Message(END_STEP, {'phase': STANDARD_PHASE, 'stepId': 1,
'jobName': 'Thermal'})
mdb.jobs['Thermal']._Message(COMPLETED, {'phase': STANDARD_PHASE,
'message': 'Analysis phase complete', 'jobName': 'Thermal'})
mdb.jobs['Thermal']._Message(JOB_COMPLETED, {
'time': 'Wed May 17 09:05:07 2023', 'jobName': 'Thermal'})
mdb.Model(name='Model-1-s2', objectToCopy=mdb.models['Model-1'])
mdb.models['Model-1-s2'].setValues(restartJob='Thermal', restartStep='Welding')
mdb.models['Model-1-s2'].HeatTransferStep(deltmx=1500.0, initialInc=0.01,
maxInc=2.0, maxNumInc=100000, minInc=1e-05, name='Welding-2', previous=
'Welding', timePeriod=2.0)
mdb.models['Model-1-s2'].steps['Welding-2'].setValues(initialInc=0.1,
maxNumInc=100000, minInc=0.01)
mdb.models['Model-1-s2'].steps['Welding-2'].setValues(maxInc=0.2)
mdb.Job(atTime=None, contactPrint=OFF, description='', echoPrint=OFF,
explicitPrecision=SINGLE, getMemoryFromAnalysis=True, historyPrint=OFF,
memory=90, memoryUnits=PERCENTAGE, model='Model-1-s2', modelPrint=OFF,
multiprocessingMode=DEFAULT, name='Thermal-2', nodalOutputPrecision=SINGLE,
numCpus=1, numGPUs=0, queue=None, resultsFormat=ODB, scratch='', type=
RESTART, userSubroutine=
'C:\\Users\\OPTX\\Downloads\\Digital-Twin\\substructure\\dflux.for',
waitHours=0, waitMinutes=0)
mdb.jobs['Thermal-2'].submit(consistencyChecking=OFF)
mdb.jobs['Thermal-2']._Message(STARTED, {'phase': BATCHPRE_PHASE,
'clientHost': 'DESKTOP-21KKJMM', 'handle': 0, 'jobName': 'Thermal-2'})
mdb.jobs['Thermal-2']._Message(ODB_FILE, {'phase': BATCHPRE_PHASE,
'file': 'C:\\Users\\OPTX\\Downloads\\Digital-Twin\\substructure\\Thermal-2.odb',
'jobName': 'Thermal-2'})
mdb.jobs['Thermal-2']._Message(COMPLETED, {'phase': BATCHPRE_PHASE,
'message': 'Analysis phase complete', 'jobName': 'Thermal-2'})
mdb.jobs['Thermal-2']._Message(STARTED, {'phase': STANDARD_PHASE,
'clientHost': 'DESKTOP-21KKJMM', 'handle': 7044, 'jobName': 'Thermal-2'})
mdb.jobs['Thermal-2']._Message(STEP, {'phase': STANDARD_PHASE, 'stepId': 2,
'jobName': 'Thermal-2'})
mdb.jobs['Thermal-2']._Message(ODB_FRAME, {'phase': STANDARD_PHASE, 'step': 1,
'frame': 0, 'jobName': 'Thermal-2'})
mdb.jobs['Thermal-2']._Message(MEMORY_ESTIMATE, {'phase': STANDARD_PHASE,
'jobName': 'Thermal-2', 'memory': 54.0})
mdb.jobs['Thermal-2']._Message(PHYSICAL_MEMORY, {'phase': STANDARD_PHASE,
'physical_memory': 16347.0, 'jobName': 'Thermal-2'})
mdb.jobs['Thermal-2']._Message(MINIMUM_MEMORY, {'minimum_memory': 29.0,
'phase': STANDARD_PHASE, 'jobName': 'Thermal-2'})
mdb.jobs['Thermal-2']._Message(ODB_FRAME, {'phase': STANDARD_PHASE, 'step': 1,
'frame': 1, 'jobName': 'Thermal-2'})
mdb.jobs['Thermal-2']._Message(STATUS, {'totalTime': 2.1, 'attempts': 1,
'timeIncrement': 0.1, 'increment': 1, 'stepTime': 0.1, 'step': 2,
'jobName': 'Thermal-2', 'severe': 0, 'iterations': 3,
'phase': STANDARD_PHASE, 'equilibrium': 3})
mdb.jobs['Thermal-2']._Message(ODB_FRAME, {'phase': STANDARD_PHASE, 'step': 1,
'frame': 2, 'jobName': 'Thermal-2'})
mdb.jobs['Thermal-2']._Message(STATUS, {'totalTime': 2.2, 'attempts': 1,
'timeIncrement': 0.1, 'increment': 2, 'stepTime': 0.2, 'step': 2,
'jobName': 'Thermal-2', 'severe': 0, 'iterations': 3,
'phase': STANDARD_PHASE, 'equilibrium': 3})
mdb.jobs['Thermal-2']._Message(ODB_FRAME, {'phase': STANDARD_PHASE, 'step': 1,
'frame': 3, 'jobName': 'Thermal-2'})
mdb.jobs['Thermal-2']._Message(STATUS, {'totalTime': 2.3, 'attempts': 1,
'timeIncrement': 0.1, 'increment': 3, 'stepTime': 0.3, 'step': 2,
'jobName': 'Thermal-2', 'severe': 0, 'iterations': 3,
'phase': STANDARD_PHASE, 'equilibrium': 3})
mdb.jobs['Thermal-2']._Message(ODB_FRAME, {'phase': STANDARD_PHASE, 'step': 1,
'frame': 4, 'jobName': 'Thermal-2'})
mdb.jobs['Thermal-2']._Message(STATUS, {'totalTime': 2.45, 'attempts': 1,
'timeIncrement': 0.15, 'increment': 4, 'stepTime': 0.45, 'step': 2,
'jobName': 'Thermal-2', 'severe': 0, 'iterations': 3,
'phase': STANDARD_PHASE, 'equilibrium': 3})
mdb.jobs['Thermal-2']._Message(ODB_FRAME, {'phase': STANDARD_PHASE, 'step': 1,
'frame': 5, 'jobName': 'Thermal-2'})
mdb.jobs['Thermal-2']._Message(STATUS, {'totalTime': 2.65, 'attempts': 1,
'timeIncrement': 0.2, 'increment': 5, 'stepTime': 0.65, 'step': 2,
'jobName': 'Thermal-2', 'severe': 0, 'iterations': 3,
'phase': STANDARD_PHASE, 'equilibrium': 3})
mdb.jobs['Thermal-2']._Message(ODB_FRAME, {'phase': STANDARD_PHASE, 'step': 1,
'frame': 6, 'jobName': 'Thermal-2'})
mdb.jobs['Thermal-2']._Message(STATUS, {'totalTime': 2.85, 'attempts': 1,
'timeIncrement': 0.2, 'increment': 6, 'stepTime': 0.85, 'step': 2,
'jobName': 'Thermal-2', 'severe': 0, 'iterations': 4,
'phase': STANDARD_PHASE, 'equilibrium': 4})
mdb.jobs['Thermal-2']._Message(ODB_FRAME, {'phase': STANDARD_PHASE, 'step': 1,
'frame': 7, 'jobName': 'Thermal-2'})
mdb.jobs['Thermal-2']._Message(STATUS, {'totalTime': 3.05, 'attempts': 1,
'timeIncrement': 0.2, 'increment': 7, 'stepTime': 1.05, 'step': 2,
'jobName': 'Thermal-2', 'severe': 0, 'iterations': 3,
'phase': STANDARD_PHASE, 'equilibrium': 3})
mdb.jobs['Thermal-2']._Message(ODB_FRAME, {'phase': STANDARD_PHASE, 'step': 1,
'frame': 8, 'jobName': 'Thermal-2'})
mdb.jobs['Thermal-2']._Message(STATUS, {'totalTime': 3.25, 'attempts': 1,
'timeIncrement': 0.2, 'increment': 8, 'stepTime': 1.25, 'step': 2,
'jobName': 'Thermal-2', 'severe': 0, 'iterations': 3,
'phase': STANDARD_PHASE, 'equilibrium': 3})
mdb.jobs['Thermal-2']._Message(ODB_FRAME, {'phase': STANDARD_PHASE, 'step': 1,
'frame': 9, 'jobName': 'Thermal-2'})
mdb.jobs['Thermal-2']._Message(STATUS, {'totalTime': 3.45, 'attempts': 1,
'timeIncrement': 0.2, 'increment': 9, 'stepTime': 1.45, 'step': 2,
'jobName': 'Thermal-2', 'severe': 0, 'iterations': 3,
'phase': STANDARD_PHASE, 'equilibrium': 3})
mdb.jobs['Thermal-2']._Message(ODB_FRAME, {'phase': STANDARD_PHASE, 'step': 1,
'frame': 10, 'jobName': 'Thermal-2'})
mdb.jobs['Thermal-2']._Message(STATUS, {'totalTime': 3.65, 'attempts': 1,
'timeIncrement': 0.2, 'increment': 10, 'stepTime': 1.65, 'step': 2,
'jobName': 'Thermal-2', 'severe': 0, 'iterations': 3,
'phase': STANDARD_PHASE, 'equilibrium': 3})
mdb.jobs['Thermal-2']._Message(ODB_FRAME, {'phase': STANDARD_PHASE, 'step': 1,
'frame': 11, 'jobName': 'Thermal-2'})
mdb.jobs['Thermal-2']._Message(STATUS, {'totalTime': 3.85, 'attempts': 1,
'timeIncrement': 0.2, 'increment': 11, 'stepTime': 1.85, 'step': 2,
'jobName': 'Thermal-2', 'severe': 0, 'iterations': 3,
'phase': STANDARD_PHASE, 'equilibrium': 3})
mdb.jobs['Thermal-2']._Message(ODB_FRAME, {'phase': STANDARD_PHASE, 'step': 1,
'frame': 12, 'jobName': 'Thermal-2'})
mdb.jobs['Thermal-2']._Message(STATUS, {'totalTime': 4.0, 'attempts': 1,
'timeIncrement': 0.15, 'increment': 12, 'stepTime': 2.0, 'step': 2,
'jobName': 'Thermal-2', 'severe': 0, 'iterations': 3,
'phase': STANDARD_PHASE, 'equilibrium': 3})
mdb.jobs['Thermal-2']._Message(END_STEP, {'phase': STANDARD_PHASE, 'stepId': 2,
'jobName': 'Thermal-2'})
mdb.jobs['Thermal-2']._Message(COMPLETED, {'phase': STANDARD_PHASE,
'message': 'Analysis phase complete', 'jobName': 'Thermal-2'})
mdb.jobs['Thermal-2']._Message(JOB_COMPLETED, {
'time': 'Wed May 17 09:25:27 2023', 'jobName': 'Thermal-2'})

@ -89,7 +89,7 @@ renderWindowInteractor.GetInteractorStyle().SetCurrentStyleToTrackballCamera()
# Read Data # Read Data
reader = vtkXMLUnstructuredGridReader() reader = vtkXMLUnstructuredGridReader()
# reader.SetFileName(os.path.join(CURRENT_DIRECTORY, "../../../data/disk_out_ref.vtu")) # reader.SetFileName(os.path.join(CURRENT_DIRECTORY, "../../../data/disk_out_ref.vtu"))
fp = '../vtk/s0/' fp = './odb2vtk/output/'
Fs = [ Fs = [
os.path.join(fp, lists) for lists in os.listdir(fp) os.path.join(fp, lists) for lists in os.listdir(fp)
if os.path.isfile(os.path.join(fp, lists)) and lists.endswith('.vtu') if os.path.isfile(os.path.join(fp, lists)) and lists.endswith('.vtu')

Loading…
Cancel
Save