| 2 | 1/1 | 返回列表 |
| 查看: 1938 | 回復(fù): 1 | ||
damin83730銀蟲 (小有名氣)
|
[求助]
udf導(dǎo)入失敗,報錯:無法解析的外部符號,有沒有人遇到過這種情況的,該怎么解決?
|
|
Copied e:\hovering fruit insect wing\wingx\robotfly/E:\hovering fruit insect wing\wingx\robotfly\robofly.c to robofly\src udf_names.c file in 2d is upto date. (system "copy "D:\Program Files\ANSYS Inc\v145\fluent"\fluent14.5.0\src\makefile_nt.udf "robofly\win64\2d\makefile" " ![]() 已復(fù)制 1 個文件。 (chdir "robofly" ()(chdir "win64\2d" ()# Linking libudf.dll because of makefile user_nt.udf udf_names.obj robofly.obj Microsoft (R) Incremental Linker Version 10.00.30319.01 Copyright (C) Microsoft Corporation. All rights reserved. 正在創(chuàng)建庫 libudf.lib 和對象 libudf.exp robofly.obj : error LNK2019: 無法解析的外部符號 cos,該符號在函數(shù) harmonic 中被引用 robofly.obj : error LNK2019: 無法解析的外部符號 sin,該符號在函數(shù) harmonic 中被引用 robofly.obj : error LNK2001: 無法解析的外部符號 _fltused LINK : error LNK2001: 無法解析的外部符號 _DllMainCRTStartup libudf.dll : fatal error LNK1120: 4 個無法解析的外部命令 udf文件如下: #include "udf.h" #include"math.h" #define PAI 3.14159265358979323846 #define T 40 #define N 15 #define ts 0.14 #define tr 0.3 #define As (70/180*PAI) #define Aa (55/180*PAI) #define Ws (As/(2*ts*T/PAI+0.5*T-ts*T)) #define Wa (Aa/0.5/tr/T) #define Rg 0.1624584 static int n=0; DEFINE_CG_MOTION(harmonic,dt,vel,omega,time,dtime) { real t; t=time/T-n+0.5; if (n<=N) { if ((t>=0)&&(t<=0.5*ts)) vel[0]=Rg*Ws*sin(t*PAI/ts); else if ((t>0.5*ts)&&(t<(0.5-0.5*ts))) vel[0]=Rg*Ws; else if ((t>=(0.5-0.5*ts))&&(t<=(0.5+0.5*ts))) vel[0]=Rg*Ws*sin(PAI/2/ts-PAI/ts*t); else if ((t>(0.5+0.5*ts))&&(t<(1-0.5*ts))) vel[0]=-Ws*Rg; else if ((t>=(1-0.5*ts))&&(t<=1)) vel[0]=Rg*Ws*sin(PAI/ts*t-PAI*ts); if ((t>=0)&&(t<=0.5*tr)) omega[2]=-Wa+Wa*cos(t/tr*2*PAI+PAI); else if ((t>0.5*tr)&&(t<(0.5-0.5*tr))) omega[2]=0; else if ((t>=(0.5-0.5*tr))&&(t<=(0.5+0.5*tr))) omega[2]=Wa-Wa*cos(2*PAI/tr*t-PAI/tr+PAI); else if ((t>(0.5+0.5*tr))&&(t<(1-0.5*tr))) omega[2]=0; else if ((t>=(1-0.5*tr))&&(t<=1)) omega[2]=-Wa+Wa*cos(2*PAI/tr*t-2*PAI/tr+PAI); } if (t==1.0) n+=1; } [ Last edited by damin83730 on 2013-6-3 at 19:21 ] |
木蟲 (正式寫手)
| 2 | 1/1 | 返回列表 |
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 333求調(diào)劑 +5 | 87639 2026-03-21 | 7/350 |
|
|---|---|---|---|---|
|
[考研] 考研化學(xué)學(xué)碩調(diào)劑,一志愿985 +5 | 張vvvv 2026-03-15 | 7/350 |
|
|
[考研] 0703化學(xué)調(diào)劑 +4 | 妮妮ninicgb 2026-03-21 | 4/200 |
|
|
[考研] 297求調(diào)劑 +11 | 戲精丹丹丹 2026-03-17 | 12/600 |
|
|
[考研] 311求調(diào)劑 +3 | 勇敢的小吳 2026-03-20 | 3/150 |
|
|
[考研] 299求調(diào)劑 +4 | 某某某某位 2026-03-21 | 4/200 |
|
|
[考研] 279分求調(diào)劑 一志愿211 +14 | chaojifeixia 2026-03-19 | 15/750 |
|
|
[考研] 機械專碩299求調(diào)劑至材料 +3 | kkcoco25 2026-03-16 | 4/200 |
|
|
[考研] 08工科 320總分 求調(diào)劑 +6 | 梨花珞晚風(fēng) 2026-03-17 | 6/300 |
|
|
[考研] 321求調(diào)劑 +9 | 何潤采123 2026-03-18 | 11/550 |
|
|
[考研] 考研調(diào)劑求學(xué)校推薦 +3 | 伯樂29 2026-03-18 | 5/250 |
|
|
[考研] 北科281學(xué)碩材料求調(diào)劑 +5 | tcxiaoxx 2026-03-20 | 5/250 |
|
|
[考研] 295材料求調(diào)劑,一志愿武漢理工085601專碩 +5 | Charlieyq 2026-03-19 | 5/250 |
|
|
[考研] 086500 325 求調(diào)劑 +3 | 領(lǐng)帶小熊 2026-03-19 | 3/150 |
|
|
[考研] 一志愿中國海洋大學(xué),生物學(xué),301分,求調(diào)劑 +5 | 1孫悟空 2026-03-17 | 6/300 |
|
|
[考研] 081700化工學(xué)碩調(diào)劑 +3 | 【1】 2026-03-16 | 3/150 |
|
|
[考研] 286求調(diào)劑 +6 | lemonzzn 2026-03-16 | 10/500 |
|
|
[考研] 考研求調(diào)劑 +3 | 橘頌. 2026-03-17 | 4/200 |
|
|
[考研] 一志愿,福州大學(xué)材料專碩339分求調(diào)劑 +3 | 木子momo青爭 2026-03-15 | 3/150 |
|
|
[考研] 318求調(diào)劑 +3 | Yanyali 2026-03-15 | 3/150 |
|