CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

Mesh displacement failed with User CEL Functions

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 9, 2021, 04:28
Default Mesh displacement failed with User CEL Functions
  #1
New Member
 
motorbean
Join Date: Nov 2011
Posts: 17
Rep Power: 15
motorbean is on a distinguished road
Hello, everyone !
I'm trying to use a User CEL function to prescribed mesh displacement, but have a problem.

First, the settings are:
1) I interpolated the known vibration mode shape ("mode1.norm meshdisptot") into CFX onto the blade (rotor67), so that the User CEL function is used to prescribed the magnitude of the vibration mode at every physical time step. The User CEL Function is used to compute the mode shape amplitude at each time step.
2) The blade boundary mesh motion option is set as "Specified Displacement", with X,Y,Z components specified. For example, the X-component is expressed as:

mode1.norm meshdisptot x(Initial X, Initial Y, Initial Z)*mode1amplitude(ctstep,citern). (in which, mode1amplitude(ctstep,citern) is the User CEL Function)

The Problem is:
Whenever a User CEL Function is used in the mesh displacement expression, the numerical computation of mesh displacement at the start of the time step will diverge and fail, and it produces a negative volume on the order as huge as 1.0e+10 ! This happens, even when, I deliberately sets the return value of the User CEL Function to 0 (as a test) inside the user fortran source code.

This problem does not a occur if I use a number or a CEL expression for the modeshape amplitude (i.e. the mesh deformation computation converges, no negative volume). So it seems the problem is related to the function calling. But I'm still very confused and don't know how to fix this.

Does anyone have an idea about the reason as well as how to solve the problem, please ? Thank you !
motorbean is offline   Reply With Quote

Old   February 9, 2021, 06:26
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
I assume you are not trying to do FSI here, in other words you are simply trying to move the CFX boundaries by a pre-defined function. If the CFX fluids simulation affects the deflection then you should just use the built-in FSI capability.

Debugging mesh motion can be tricky. The FAQ on negative volumes describes the best way to debug this sort of problem: https://www.cfd-online.com/Wiki/Ansy..._went_wrong.3F
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   July 11, 2022, 06:33
Default
  #3
New Member
 
Sheldon Zheng
Join Date: Dec 2021
Posts: 1
Rep Power: 0
LDD_TURBO is on a distinguished road
Hi! I encountered the same problem, have you solved this problem?
LDD_TURBO is offline   Reply With Quote

Reply

Tags
user cel function


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Foam::error::printStack(Foam::Ostream&) with simpleFoam -parallel U.Golling OpenFOAM Running, Solving & CFD 52 September 23, 2023 04:35
[snappyHexMesh] No layers in a small gap bobburnquist OpenFOAM Meshing & Mesh Conversion 6 August 26, 2015 10:38
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch gschaider OpenFOAM Installation 225 August 25, 2015 20:43
[Gmsh] 2D Mesh Generation Tutorial for GMSH aeroslacker OpenFOAM Meshing & Mesh Conversion 12 January 19, 2012 04:52
user subroutine error CFDUSER CFX 2 December 9, 2006 07:31


All times are GMT -4. The time now is 18:00.