TAGGED: apdl, ekill-elements, initial-conditions, restart-analysis
-
-
March 5, 2023 at 10:26 am
John Miller
SubscriberHello,
I’m facing a problem during an AM simulation (transient thermal).
In this simulation, the extruded material is killed initially and then subsequently extruded with ealive.
It’s working just fine.
This is the basic model, but I have to use /prep7 in combination with a single frame restart.
Setting up this is also not extremely difficult, but now the element kill is not working anymore.
Without restarting, this works:
nropt,full
/prep7
cmsel,s,path
ekill,all
finish
/solu
But with restart, because of the rdb data, this isn’t working anymore.
The first step looks okay:
The second step is also okay:
The third step is wrong, only the first extruded Volume is still alive, and all activated elements of the second step are killed.
Only the first step is okay and all other steps are wrong. The former extruded elements via ealive are killed. The prep7 is working in every step/load step.
Is there a way to kill only initially the elements with inistate for example or other commands?
With best regards
John
-
March 6, 2023 at 3:50 pm
Dave Looman
Ansys EmployeeIt's better to not leave solution if you don't have to. EKILL/EALIVE can be done in solution for example. One issue with restarts is there is an internal resume of a database saved at the start of solution. That can destroy parameter definitions and other model information created after the start of solution. A possible workaround might be to save the database before the restart command and resume it afterwards.
-
March 7, 2023 at 10:10 am
John Miller
SubscriberHello Dave,
thank you for your response. You are right, it’s better to stay in /solu, but the model is forcing me to do so. Without leaving the solution, it’s not difficult to achieve a material extrusion for AM Process with the aid of ekill and ealive. I simplified my model to make it more clear how it works.
The Problem with my model is that I need the current surface for radiation application. You can see it in the picture below. During material extrusion via ealive the current surface is constantly changing, which makes it difficult to use the GUI radiation dialogue. For this, you can use only the final exterior surface, but this is not the exterior surface during the material extrusion. During extrusion with ealive the inner elements/nodes become currently exterior and after a few lines interior.
Without restarting it looks like this (for the 6th time step):
With restart that’s the result (for the 6th time step):
The code of the two APDL snippets I use looks like this:
Command object 1 (“initial_ekill) for the element deletion of the volume to be generated:
Code:
________________________________________
nropt,full
/prep7
cmsel,s,path
ekill,all
finish
/solu
________________________________________This kills the element of the “path”, which is the volume to be generated step by step via ealive.
Without restarting it works fine, because the /prep7 is only called one time.
Command object 2 (“AM_process”) for the element seletion of the volume to be generated:
Code:
________________________________________
tintp,,,,1.0
nropt,full
! Parameter
t=1
….
…
*do,iijj,….! Outer loop for AM phase iii =1 and cooling phase iii=2
*if,iijj,….
*do,i,… ! AM loop with ealive
/GOPR
! Force Single Frame restart
rescontrol,none
! Deleting the temperature from the previous time step
cmsel,s,path,node
cm,Tload,node
ddele,…
! Element activation for the newly extruded volume
esel,r,…
…
cm,alive,elem
ealive,alive
! Applying the thermal load (temperature) to the volume/node activated by ealive
cmsel,s,path,node
nsel,r,…
…
cm,load,node
D,load,temp,TL
! Select external nodes
/com,*****************************Currently External Nodes*****************************
cmsel,s,path,elem
esel,r,…
nsel,s,…
cmsel,u,…
cm,external,node
/com,******************************************************************************
! Constant print bed temperature
nsel,none
esel,none
cmsel,s,…
cm,bednodes,node
D,bednodes,temp,Tbed
allsel,all
outres,all
Time,i*dt
solve
! Excursion into the preprocessor for the creation of surf152 elements for convection and radiation
/prep7
/GOPR
/com,Start surf152 for convection
esel,s,….
….
….
esurf
allsel,all
/com,End surf152 generation for convection
! Restart of solution phase
/solu
trnopt,full
nropt,full
thopt,full
antype,,restart
! Application of the thermal load on surf152 elements
esel,s,ename,,152
…
allsel,all
outres,all,all
*enddo
! cooling
*elseif,iijj,…
/com,****************************Cooling Step***********************************
/GOPR
…
allsel,all
outres,all,all
*do,jjj,…
/GOPR
…
solve
*enddo
/com,******************************************************************************
*else
*endif
*enddoThe database must be saved in this way so that initially the body “path” is killed and during the AM process the former generated volume, because of a former step won’t be deleted.
I thought about using:
/config,noeldb,0 !
to write results into the database.
With best regards
John
-
-
March 7, 2023 at 3:27 pm
Dave Looman
Ansys EmployeeI've never had to update radiation definition during solution so I probably can't appreciate the difficulties of doing that, but I haven't seen any APDL commands in your scripts that can't be issued in solution.
/config,noeldb,0 is frequently needed when modifying the model during solution. Probably also should use shared memory (not distributed) parallel when accessing current results during solution.
-
March 8, 2023 at 2:25 pm
John Miller
SubscriberHello Dave,
thank you for your answer.
When I use /config,noeldb,0 whether in /prep7 or /solu I get always
*** WARNING *** CP = 3.703 TIME= 15:12:16
/CONFIG is not a recognized SOLUTION command, abbreviation, or macro.This command will be ignored.
or
*** WARNING *** CP = 3.078 TIME= 15:06:54
/CONFIG is not a recognized PREP7 command, abbreviation, or macro.
This command will be ignored.
Ende surf152 for RadiationMaybe that’s not the right way. Perhaps the save command is more promising
With best regrads
John
-
-
March 8, 2023 at 2:20 pm
John Miller
SubscriberHello Dave,
thank you for your answer.
When I use /config,noeldb,0 whether in /prep7 or /solu I get always
*** WARNING *** CP = 3.703 TIME= 15:12:16
/CONFIG is not a recognized SOLUTION command, abbreviation, or macro.This command will be ignored.
or
*** WARNING *** CP = 3.078 TIME= 15:06:54
/CONFIG is not a recognized PREP7 command, abbreviation, or macro.
This command will be ignored.
Ende surf152 for RadiationMaybe that’s not the right way. Perhaps the save command is more promising
With best regrads
John
-
March 8, 2023 at 3:00 pm
Dave Looman
Ansys Employee/config is a "Session" command so needs to be issued outside modules like PREP7 and SOLU. If you are in a module issue finish to leave the module and then /solu or /prep7 to reenter the module:
finish
/config,noeldb,0
/solu
-
March 8, 2023 at 4:47 pm
John Miller
SubscriberHello Dave,
thanks for the hint.
I used /config,noeldb,0 after the solve right before I leave /solu and enter /prep7, unfortunately I didn’t change anything.
…
D,bednodes,temp,Tbed
allsel,all
outres,allTime,i*dt
solvesave
finish
/config,noeldb,0
/prep7
/GOPR
/com,Start surf152 for radiationesel,s,….
….
….
esurf
allsel,all
/com,End surf152 generation for radiation
! Restart of solution phase
/solu…
If I plot the Temperature of the AM process I discovered something strange, the first three time steps are looking good. Material is extruded and then with the 4th time step the activation of the elements is no longer correct, suddenly elements are deleted again. I do not understand why
Step 1
Step 2
Step 3
Step 4
Step 5
Step 6
Step 7
Step 8
Step 9
Step 10
Step 11
Step 12
With best regards
John
-
-
March 8, 2023 at 6:07 pm
Dave Looman
Ansys EmployeeSo the process is to gradually ealive additional elements, but starting in load step 4 some of them go back to being dead? I've never seen that happen on it's own, but perhaps the restart issue I mentioned could set the status of an element back to a previous status.
-
March 10, 2023 at 10:38 am
John Miller
SubscriberHello Dave,
neither do I understand why this is happening nor how to fix this?
Is it possible to update the restart database (for single frame restart) after each step?
With best regards
John
-
-
March 10, 2023 at 2:39 pm
Dave Looman
Ansys EmployeeEarlier I proposed issuing save,model,db and resume,model,db before and after the antype,,restart. I don't know if that would help or not.
-
March 13, 2023 at 12:43 pm
John Miller
SubscriberHello Dave,
if I place the save and resume command before and afrter the restart I get this result.
It's even worse than before.
The script looks like this:
tintp, , , , 1.0
nropt, fullfinish
/ config, noeldb, 0
/ solu
...
Parameter
...
*do, iijj,...
* if, iijj, ...
*do, i,...
/ GOPR
rescontrol, none
...
cm, alive, elem
ealive, alive...
cm, load, nodeD, load, temp, TL
/ com, Currently External Nodes
cmsel, ...
...
cm, external, node
nsel, stat
esel, stat
/ com, Ende Currently External Nodesddele, external, temp,
d, external, temp, Tsurf
...
allsel, all
outres, allTime, ...
solve/ prep7
/ GOPR
/ com, Start surf152 for radiation
...
esurf
esel, stat
nsel, stat
allsel, all
/ com, End surf152 for radiationsave, model, db
/ solu
trnopt, full
nropt, full
thopt, fullantype, , restart
finish
resume, model, db
/solu
...
further things
..
allsel, all
outres, all, all
*enddo*elseif, iijj,...
/ com, Start cooling Step
/ GOPR
...ddele, ...
...
D, bednodes, temp, Tbedallsel, all
outres, all, all*do, jjj, ...
/ GOPR
...
Time, ...
solve
*enddo
/ com, Ende cooling step*else
*endif
*enddo/ prep7
!optional:
*create, solve, mac
/ com, Skip 'Solve'
*end
-
-
- The topic ‘Initial Element kill’ is closed to new replies.

Boost Ansys Fluent Simulations with AWS
Computational Fluid Dynamics (CFD) helps engineers design products in which the flow of fluid components is a significant challenge. These different use cases often require large complex models to solve on a traditional workstation. Click here to join this event to learn how to leverage Ansys Fluids on the cloud, thanks to Ansys Gateway powered by AWS.

Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.

Ansys Blog
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
- Saving & sharing of Working project files in .wbpz format
- Solver Pivot Warning in Beam Element Model
- Understanding Force Convergence Solution Output
- An Unknown error occurred during solution. Check the Solver Output…..
- What is the difference between bonded contact region and fixed joint
- whether have the difference between using contact and target bodies
- The solver engine was unable to converge on a solution for the nonlinear problem as constrained.
- User manual
- Colors and Mesh Display
- material damping and modal analysis
-
3862
-
2639
-
1859
-
1254
-
600
© 2023 Copyright ANSYS, Inc. All rights reserved.