-
-
May 29, 2021 at 5:12 pm
teoman
SubscriberHi Rob
I tried the code given in Item 2.6.4. DEFINE_GRID_MOTION .and while interpreting an error occurs at
Thread *tf = DT_THREAD(dt); command line.
What is the reason for that .And How I can fi it.
Thanks a lot.
Teoman
-
May 30, 2021 at 8:24 am
teoman
SubscriberWhile interpreting the compiler gives "structure reference not implemented" message for the Thread *tf = DT_THREAD(dt);command line.
Waiting for your advice.
Teoman
-
June 1, 2021 at 11:55 am
System
SubscriberThis discussion was created from comments split from: help me with understanding the structure of the udf for oscillating diaphragm in dynamic mesh. -
June 1, 2021 at 11:55 am
Rob
Ansys Employee -
June 1, 2021 at 5:08 pm
teoman
SubscriberHi Rob
Thanks for the info.
It requires customer registry.But ,I am a student of ─░stanbul Tech.Univ.
Please copy the io tet here.
Regrads
-
June 2, 2021 at 9:35 am
teoman
SubscriberHi Rob
Firstly, Sorry for the mistyping.
As I mentioned beor ,I am unable to read the link you gave.
I am waiting for your kind help.
Regards.
-
June 2, 2021 at 9:37 am
teoman
SubscriberKeyboard needs to be repaired ,some letters are malfunctioning .
Sorry again.
-
June 2, 2021 at 9:54 am
-
June 2, 2021 at 11:20 am
teoman
SubscriberThanks indeed.
I have already read the related items in The Help Manulas.Manual is not describing how to solve or being free from "structure reference not implemented" error message.
Despite the interpreting error , the UDF (eactly same with Manual) has been compiled and opened .but does not seem to be working .
I do not know what to do more.
Looking forward having your help.
Best Regards.
-
June 2, 2021 at 11:30 am
Rob
Ansys EmployeeIf it compiled without error did you then hook the UDF up to the solver? Ie attach to the various models and boundary conditions? In the Help system there are tutorials and videos, I think at least one covers the moving mesh.
-
June 2, 2021 at 12:50 pm
teoman
SubscriberMany Thanks
I will work on it.
Best Regards.
-
June 3, 2021 at 9:20 am
teoman
SubscriberHi Rob
I hooked the udf without any error message except the one.
But it is not working.Because , when Thread*tf=DT_THREAD(dt); is not implemented.
begin_f_loop(f,tf) command is not working. I guess ,the cause is that "tf" not defined.
I have put a Message line in UDF and it shows that time stepping is ok .But when I put it into begin_f_loop no message apperars on the screen.
I am desperately needing your help.
Regards
Teoman
#include"udf.h"
DEFINE_GRID_MOTION(beam,domain,dt,time,dtime)
{
Thread*tf=DT_THREAD(dt);
face_tf;
intn;
Node*v;
real dy;
dy=5*sin(25*time);
/*getthethreadpointerforwhichthismotionisdefined*/
SET_DEFORMING_THREAD_FLAG(THREAD_T0(tf));
Message("time=%f,dy=%f\n",time,dy);
begin_f_loop(f,tf)
{
f_node_loop(f,tf,n)
{
v=F_NODE(f,tf,n);
if(NODE_X(v)>50.0&&NODE_POS_NEED_UPDATE(v))
{
NODE_POS_UPDATED(v);
NODE_Y(v)=NODE_Y(v)+NODE_X(v)*dy;
}
}
}
end_f_loop(f,tf);
}
-
June 3, 2021 at 11:37 am
Rob
Ansys EmployeeTry adding a space between Thread and *tf otherwise you'll need to rely on the wider community as we (staff) won't be debugging code.
-
June 3, 2021 at 1:35 pm
teoman
SubscriberCertainly, I am not expecting anyone debugging .
The syntax ,You saw was just one of syntax I tried. First ,I used exactly same Grid_Motion sample UDF given in the Manual.
After having the interpreting error ; I thought , There could be a mistyping in the Manual Then I tried diferent syntaxs.
Customization Manual Item 4.3 mentiones the same error ; I had; can happen. But not advicing any solution.
So , this error is a systemic error without solution , I am afraid.
The only helping source is you and your colleques that I can rely on.
Many many thanks
Teo
-
June 3, 2021 at 1:40 pm
Rob
Ansys EmployeeIt compiles but then gives the Thread *tf error or it gives the Thread *tf error when compiling? Did you copy + paste from the manual or type in from scratch?
-
June 3, 2021 at 2:26 pm
-
June 4, 2021 at 1:03 pm
teoman
SubscriberHi Rob
Finally I discovered the problem which was another syntax error in my code.
Please accept my apologies for taking your time .
And accept my sincere thanks for your kind help and effort.
Best Regrads
Teoman
-
June 4, 2021 at 3:11 pm
Rob
Ansys EmployeeYou're welcome. Please post the working code so others can learn from it.
-
June 9, 2021 at 2:16 pm
teoman
SubscriberThe problematic command line is
if(NODE_X(v)>50.0&&NODE_POS_NEED_UPDATE(v))
UDF uses dimension unit as "meter" even if You adusted the unit to "milimeter" in fluent. Then the dimension
in the command line " 50.0" is meter for UDF and equals to 50000 milimeter and if you CAD model is smaller in dimension Than the code does not work.
Fluent dimension set up should override UDF's unit system.
-
June 9, 2021 at 4:09 pm
Rob
Ansys EmployeeIt does say somewhere that Fluent assumes all inputs and outputs of UDFs are in SI units. It's our way of forcing the US to catch up with the rest of the world and stop using BTU/in/ft2 as a unit.
-
March 27, 2022 at 7:50 am
miranda
SubscriberHello Teoman we are also trying to solve a similar problem. So we have a few questions to ask you. We are a group of senior design students form MEF university ─░stanbul. If you available can you please contact with us from this email adress: emremiranda134@gmail.com
-
- You must be logged in to reply to this topic.

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.
- Floating point exception in Fluent
- What are the differences between CFX and Fluent?
- Heat transfer coefficient
- Difference between K-epsilon and K-omega Turbulence Model
- Getting graph and tabular data from result in workbench mechanical
- The solver failed with a non-zero exit code of : 2
- Suppress Fluent to open with GUI while performing in journal file
- Mesh Interfaces in ANSYS FLUENT
- Time Step Size and Courant Number
- error: Received signal SIGSEGV
-
7690
-
4484
-
2957
-
1435
-
1322
© 2023 Copyright ANSYS, Inc. All rights reserved.