-
-
November 12, 2019 at 11:24 am
-
November 27, 2019 at 4:59 pm
Rohith Patchigolla
Ansys EmployeeHi Hollyfart,Â
Please clarify,Â
Is the pressure within the circle constant (i.e. F/A) or varying based on the X and Y coordinates (i.e. according to the function) based on a co-ordinate system located at the center of circle? Let us ignore the time factor for now.Â
Best regards,
Rohith
Â
-
December 10, 2019 at 12:55 pm
HollyFart
SubscriberHi rgpatchi,
the pressure within the circle area should be uniform.
It’s simple P=F/A and not dependant on X and Y coordinates.
Best regards
HF
-
December 11, 2019 at 3:34 pm
Rohith Patchigolla
Ansys EmployeeHello Holly,Â
Thanks for your reply.Â
In that case, function approach is not feasible.Â
Try the below steps:
0. Create SURF154 elements on the face where you would like to apply this pressure.
1. Divide your simulation into number of load steps, say 10 (more number of load steps --> more resolution of the moving pressure load)
2. At each load step,Â
- Create a local cylindrical co-ordinate system at a center of the current circles position.Â
- select the SURF154 elements and nodes attached to these elements
- Re-elect nodes in the created cyl co-ordinate system within radius of the circle, using X co-ordinate (radial)
- Re-select SURF154 elements attached to the selected nodes
- Apply Pressure value (calculated based on your equation) to the selected elementsÂ
- Go to next load step
I have pasted a simple script for step 2, you can use for this purpose (to demonstrate the steps - please customize according to your need).
wpcs,-1,0 ! WP @ GLOBAL ORIGIN
wpof,,6 ! OFFSET WP ALONG ITS Y AXIS (i.e. provide current position of center of circle along Y axis)
cswp,11,1 ! DEFINE Cylindrical COORDINATE SYSTEM @ WP ORIGIN
esel,s,ename,,154Â Â Â Â Â Â ! Select SURF154 elements
sfed,all,,pres         ! Delete old pressures if any
nsle                    ! Select nodes attached to selected SURF elements
nsel,r,loc,x,0,3Â Â Â Â Â Â ! Select nodes within radius of circle, say 3 mm
csys,0Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ! Set CSYS back to global
esln,r                  ! Select SURF elements attached to the nodes within the circle
sfe,all,,pres,,1Â Â Â Â Â Â Â Â ! Apply pressure based on your calculation at the said time. You can automate this by some more commands
allsel,all
outres,all,all
Hope this helps.Â
Please let me know if you have any other questions.Â
Best regards,
Rohith
-
December 12, 2019 at 9:09 am
HollyFart
SubscriberHallo Rohith,
thank you very much for your solution post.
It’s really helpful!, but I’m not really sure how to implement SURF154 Elements on the part surface.
Can it be done by defining named component or should I use an APDL snippet to achieve this?
Like:
et,matid,154
Best regards,
HF
-
December 12, 2019 at 9:10 am
Rohith Patchigolla
Ansys EmployeeHi Holly,Â
Are you using Workbench or ANSYS Classic?
Best regards,
Rohith
-
December 12, 2019 at 11:30 am
HollyFart
SubscriberHi Rohith,
I use Ansys Workbench 16 and I'm quite familiar with the use of APDL command snippets.
Best regards
Â
HF
-
December 12, 2019 at 1:22 pm
Rohith Patchigolla
Ansys EmployeeHi Holly,Â
Thanks for the clarification.Â
You can ofcourse create SURF154 elements on a surface, by selecting nodes of the surface (by selecting the face named selection via CMSEL command) and use ESURF command to create the elements.Â
But, easier option would be to simply, create a dummy pressure load via GUI in Mechanical on the face, with a very low pressure value, say 1e-8.Â
This will create the elements for you, and then you can simply select these elements in the script I suggested.Â
Also, when you have multiple pressure loads in your model, multiple SURF154 (with different type numbers) will be created. So, care is to be taken to select correct set of SURF154 elements via Type number, i.e. ESEL,S,TYPE,, instead of ESEL,S,NAME,,154 as I suggested before.
Hope this helps.Â
Best regards,
Rohith
-
December 12, 2019 at 3:19 pm
-
December 12, 2019 at 3:42 pm
Rohith Patchigolla
Ansys EmployeeHi Holly,Â
Please try below commands in the command object, corresponding only to Step 1.Â
/prep7Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ! Enter into /prep7 as ET and ESURF are valid only in /PREP7
et,100,154Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ! Create a new element type for SURF154Â Â Â Â Â
cmsel,s,surface1 ! Select nodes on a face via Face named selection
type,100Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ! Set the element type as 100
esurf                           ! Create surface effect elements on the selected nodes
allsel,all                      ! Select everything back Â
/solu                           ! Re-enter /SOLU
Hope this helps.Â
Best regards,
Rohith -
December 12, 2019 at 4:55 pm
HollyFart
SubscriberHi Rohith,
thank you very much for your help. It’s perfectly working.
Best regards,
HF
-
December 18, 2019 at 11:38 am
HollyFart
SubscriberHi Rohith,
I’m trying to implement the pressure load via do loop.
Something isn’t working, I’m missing something.
The command script is:
total_time = 10Â Â Â Â Â Â Â Â Â Â ! Total simulation time in seconds
time_steps = 100Â Â Â Â Â Â Â Â Â ! Total amount of steps
time_inc = total_time/time_steps ! Time increment in seconds
V_p = 0.01Â Â Â Â Â Â Â Â Â Â Â Â ! m/s Load velocity
Radius = 0.005          ! m  Radius of the load area
PV = 1E04             ! Pa Load value
X_GESAMT= 0.1           ! m Workpiece length            Â
Â
*do,i,1,time_steps,1
Â
 nsub,1
 time=i*time_inc
Â
 wpcs,-1,0        ! WP @ GLOBAL ORIGIN
 wpof,,V_p*time     ! OFFSET WP ALONG ITS Y AXIS (i.e. provide current position of center of circle along Y axis)
 cswp,11,1        ! DEFINE Cylindrical COORDINATE SYSTEM @ WP ORIGIN
 esel,s,ename,,154    ! Select SURF154 elementsÂ
 sfed,all,,pres     ! Delete old pressures if any
 nsle          ! Select nodes attached to selected SURF elements
 nsel,r,loc,x,Radius   ! Select nodes within radius of circle, 0.005m
 csys,0         ! Set CSYS back to global
 esln,r         ! Select SURF elements attached to the nodes within the circle
 sfe,all,,pres,,PV    ! Apply pressure based on your calculation at the said time.Â
 allsel,all
 outres,all,all
Â
*if,i,EQ,1,THEN
Â
 /prep7             ! Enter into /prep7 as ET and ESURF are valid only in /PREP7
 et,100,154           ! Create a new element type for SURF154        Â
 cmsel,s,surface1        ! Select nodes on a face via Face named selection
 type,100            ! Set the element type as 100
 esurf              ! Create surface effect elements on the selected nodes
 allsel,all           ! Select everything back Â
 /solu  Â
Â
 nsub,1
 time=i*time_inc
Â
 wpcs,-1,0        ! WP @ GLOBAL ORIGIN
 wpof,,V_p*time     ! OFFSET WP ALONG ITS Y AXIS (i.e. provide current position of center of circle along Y axis)
 cswp,11,1        ! DEFINE Cylindrical COORDINATE SYSTEM @ WP ORIGIN
 esel,s,ename,,154    ! Select SURF154 elementsÂ
 sfed,all,,pres     ! Delete old pressures if any
 nsle          ! Select nodes attached to selected SURF elements
 nsel,r,loc,x,Radius   ! Select nodes within radius of circle, 0.005m
 csys,0         ! Set CSYS back to global
 esln,r         ! Select SURF elements attached to the nodes within the circle
 sfe,all,,pres,,PV    ! Apply pressure based on your calculation at the said time.Â
 allsel,all
 outres,all,all
Â
*else
Â
 nsub,1
 time=i*time_inc
Â
 wpcs,-1,0        ! WP @ GLOBAL ORIGIN
 wpof,,V_p*time     ! OFFSET WP ALONG ITS Y AXIS (i.e. provide current position of center of circle along Y axis)
 cswp,11,1        ! DEFINE Cylindrical COORDINATE SYSTEM @ WP ORIGIN
 esel,s,ename,,154    ! Select SURF154 elementsÂ
 sfed,all,,pres     ! Delete old pressures if any
 nsle          ! Select nodes attached to selected SURF elements
 nsel,r,loc,x,Radius   ! Select nodes within radius of circle, 0.005m
 csys,0         ! Set CSYS back to global
 esln,r         ! Select SURF elements attached to the nodes within the circle
 sfe,all,,pres,,PV    ! Apply pressure based on your calculation at the said time.Â
 allsel,all
 outres,all,all
Â
*endif
*enddo
Â
Best regards,
HF
-
July 8, 2020 at 7:47 am
SteBir
SubscriberYou can find a very helpful tutorial, which explains everything in detail.
https://www.youtube.com/watch?v=dteRMtuXjdk
-
- The topic ‘Implement a moving pressure load (circle area) in Ansys WB via APDL command’ is closed to new replies.
- The legend values are not changing.
- LPBF Simulation of dissimilar materials in ANSYS mechanical (Thermal Transient)
- Convergence error in modal analysis
- APDL, memory, solid
- How to model a bimodular material in Mechanical
- Meaning of the error
- Simulate a fan on the end of shaft
- Nonlinear load cases combinations
- Real Life Example of a non-symmetric eigenvalue problem
- How can the results of Pressures and Motions for all elements be obtained?
-
3942
-
1414
-
1272
-
1119
-
1015
© 2025 Copyright ANSYS, Inc. All rights reserved.