|
[Sponsors] |
3D moving car simulation with dynamic mesh and UDF. |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 13, 2015, 21:43 |
3D moving car simulation with dynamic mesh and UDF.
|
#1 |
New Member
Yoon
Join Date: Mar 2015
Location: Seoul
Posts: 22
Rep Power: 11 |
Hi
I'm trying to simulate moving car on the road. but when I use UDF code belows, Error sign occur (Error: The UDF library you are trying to load (libudf) is not compiled for 3ddp on the current platform (win64).) #include “udf.h” DEFINE_CG_MOTION(car_velocity,dt,vel,omega,time,dt ime) { Thread *t; NV_S(vel, =, 0.0); NV_S(omega, =, 0.0); if(!Data_Valid_P()) return; vel[0] = 5.0; } this code is from here. remeshing & smoothing K-e standard density based Is anyone knows why this error occur?? need your help. thanks |
|
September 1, 2016, 17:36 |
|
#2 |
New Member
Marcelo Italo Adotti
Join Date: Jul 2011
Posts: 8
Rep Power: 15 |
Hello Touyet have found a solution to the problem?
I am considering starting a project with the same idea |
|
September 2, 2016, 05:45 |
|
#3 |
Senior Member
duri
Join Date: May 2010
Posts: 245
Rep Power: 17 |
||
September 5, 2016, 07:41 |
|
#4 | |
Senior Member
Paritosh Vasava
Join Date: Oct 2012
Location: Lappeenranta, Finland
Posts: 732
Rep Power: 23 |
It simply checks if the variables needed by UDF are initialized or not. See this link for explanation.
Quote:
Try this: Code:
#include "udf.h" DEFINE_CG_MOTION(car_velocity, dt, cg_vel, cg_omega, time, dtime) { cg_vel[0] = 5.0; cg_vel[1] = 0.0; cg_vel[2] = 0.0; cg_omega[0] = 0.0; cg_omega[1] = 0.0; cg_omega[2] = 0.0; } |
||
September 6, 2016, 09:27 |
|
#5 |
Member
Davoud Malekian
Join Date: Jan 2016
Posts: 53
Rep Power: 10 |
Hello
i checked the code myself and didn't get any error, there was some obvious problems in your code that i have highlighted them. this is the code: #include "udf.h" DEFINE_CG_MOTION(car_velocity,dt,vel,omega,time,dtime) { Thread *t; NV_S(vel, =, 0.0); NV_S(omega, =, 0.0); if(!Data_Valid_P()) return; vel[0] = 5.0; } the code loaded properly for me , so if it didn't load for you the problem is your compiler. |
|
April 18, 2017, 20:28 |
|
#6 |
New Member
Join Date: Mar 2017
Posts: 8
Rep Power: 9 |
hi touyet! Do you need dpm-related udf?
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Dynamic Mesh UDF | Qureshi | FLUENT | 7 | March 23, 2017 08:37 |
UDF applied dynamic mesh and mesh motion in the same time | lostmmind | Fluent UDF and Scheme Programming | 7 | April 6, 2015 10:57 |
UDF to simulate car moving, dynamic mesh | costy | Fluent UDF and Scheme Programming | 3 | December 11, 2013 11:46 |
udf for dynamic mesh | moloykb | Fluent UDF and Scheme Programming | 1 | February 13, 2013 00:06 |
Dynamic Mesh moving interface help | akash.iitb | FLUENT | 0 | August 24, 2010 00:53 |