CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Multiple 'Define' macros to be hooked into one location

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 28, 2021, 12:25
Default Multiple 'Define' macros to be hooked into one location
  #1
Member
 
Will Crawford-Jones
Join Date: Jan 2021
Posts: 43
Rep Power: 5
wcj1n18 is on a distinguished road
Hi,

I would like to use both DEFINE_SDOF_PROPERTIES and DEFINE_CG_MOTION for just one SDOF object. Problem is, they should both be hooked into the same location (Dynamic Mesh - Dynamic Mesh Zones - SIX DOF UDF/ Properties). How can I assign a SDOF property and a CG motion to one SDOF object?

So far, I have put both of the DEFINE macros in one .c file and compiled with no problems. Problem is when I go into (Dynamic Mesh - Dynamic Mesh Zones - SIX DOF UDF/ Properties), it gives me the option of assigning one of the DEFINE macros to the object but not both?

Is this not possible or am I missing something here?

Thank you

PS. I have one rather more long-winded back up plan, however, simply doing it as described above would make things easier.

wcj1n18 is offline   Reply With Quote

Old   July 14, 2023, 07:54
Default Solution found?
  #2
New Member
 
Debayan Bera
Join Date: Jul 2023
Posts: 3
Rep Power: 3
Debayan is on a distinguished road
I'm working on something that involves a similar problem. Were you able to solve this particular problem? If you did then please let me know xx
Debayan is offline   Reply With Quote

Old   April 23, 2024, 13:19
Default
  #3
New Member
 
Join Date: Jan 2013
Posts: 1
Rep Power: 0
manoron is on a distinguished road
in define_sdof macro, dt_vel_cg option can be used to define motion which is intended in define_cg_motion.
both macro have certain difference.cg_motion imposes the motion which is irrelevant of 6dof equation and associated forces.
manoron is offline   Reply With Quote

Reply

Tags
cg_motion udf, sdof, sdof_properties


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
Running multiple macros on windows Rohit4689 STAR-CCM+ 2 February 28, 2019 21:03
Creatin macros for multiple data sets and assigning multiple zones Skyler Tecplot 0 January 24, 2019 13:24
Data access in define macros Magneto Fluent UDF and Scheme Programming 11 July 25, 2012 13:22
Robin B.C. Yu FLUENT 3 May 27, 2012 05:19
How to define the location of domain interface? Freshman CFX 3 June 2, 2005 21:06


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