CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > Siemens

Trouble with Field Functions

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   September 12, 2010, 05:50
Arrow Trouble with Field Functions
New Member
Join Date: Aug 2010
Posts: 3
Rep Power: 11
falkin is on a distinguished road
Hi all,

I working on a project as part of my undergrad BE degree, i am trying to simulate the movement of air caused by a vibrating piezoelectric cantilever beam.

So far I have approached the problem in a similar manner as to that used in the contracting cylinder tutorial in the user guide.

I am able to get my beam to deflect in one direction based on a simple y=x^2 curve.

Now the next step is to make the beam deflect back and forth (like a Japanese fan) , however i am unable to get this to work with field functions, is there a way you can code loops and while statements in there?

I was also attempting to create user coded functions but am unable to get this set up as explained in the user guide especially where it describes Library registrations etc...

Could anyone shed any light on this issue or have better ideas of how to solve this problem.

Thank you!
falkin is offline   Reply With Quote

Old   September 13, 2010, 08:29
New Member
Join Date: Mar 2009
Posts: 20
Rep Power: 13
xamo is on a distinguished road
Hi falkin,

I asked the question about loops in a field function the adapco support some weeks ago. They said, it is not possible to do loops in field functions. You can do some if then loops (using the "?", e.g. Tutorial Cavitation) but thats it.

So I think you have to use the user coding, but I have no experience with that.

xamo is offline   Reply With Quote

Old   October 6, 2010, 08:15
New Member
Join Date: Jul 2010
Posts: 11
Rep Power: 11
and_ is on a distinguished road
User coding would not be the means of choice. You can do loops in Java macros, which is something different.
But I think the easiest way would be to implement an if statement in you fieldfunction.
I'm not sure how you achieved the bending of your beam.
If you applied a force then it might look like the following
E. g. if maximum displacement of the beam is greater than a certain value then the force is pointing in the other direction.

You can get the maximum displacement by means of a report


and_ is offline   Reply With Quote


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
How to calculate pressure forces using custom field functions? tsagaro FLUENT 7 June 23, 2017 15:45
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20
Thresholds and field functions tobe STAR-CCM+ 0 September 8, 2010 02:25
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 06:51

All times are GMT -4. The time now is 21:02.