| ²é¿´: 1943 | »Ø¸´: 1 | ||
damin83730Òø³æ (СÓÐÃûÆø)
|
[ÇóÖú]
udfµ¼Èëʧ°Ü£¬±¨´í£ºÎÞ·¨½âÎöµÄÍⲿ·ûºÅ£¬ÓÐûÓÐÈËÓöµ½¹ýÕâÖÖÇé¿öµÄ£¬¸ÃÔõô½â¾ö£¿
|
|
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" " ![]() ÒѸ´ÖÆ 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. ÕýÔÚ´´½¨¿â libudf.lib ºÍ¶ÔÏó libudf.exp robofly.obj : error LNK2019: ÎÞ·¨½âÎöµÄÍⲿ·ûºÅ cos£¬¸Ã·ûºÅÔÚº¯Êý harmonic Öб»ÒýÓà robofly.obj : error LNK2019: ÎÞ·¨½âÎöµÄÍⲿ·ûºÅ sin£¬¸Ã·ûºÅÔÚº¯Êý 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 ] |
» ²ÂÄãϲ»¶
Çóµ÷¼Á
ÒѾÓÐ3È˻ظ´
Ò»Ö¾Ô¸±±¾©»¯¹¤´óѧ£¬³õÊԳɼ¨350Çóµ÷¼Á
ÒѾÓÐ14È˻ظ´
¸´ÊÔµ÷¼Á
ÒѾÓÐ4È˻ظ´
323·Ö£¨¼ÆËã»úÊÓ¾õºÍ´óÄ£ÐÍÏîÄ¿£©ÄÜÖ±½ÓÉÏÊÖ
ÒѾÓÐ3È˻ظ´
311·Ö 22408 Çóµ÷¼Á
ÒѾÓÐ3È˻ظ´
320·ÖÈ˹¤ÖÇÄܵ÷¼Á
ÒѾÓÐ7È˻ظ´
Ò»Ö¾Ô¸Ö£´ó0705Çóµ÷¼Á
ÒѾÓÐ4È˻ظ´
0703»¯Ñ§
ÒѾÓÐ10È˻ظ´
301Çóµ÷¼Á
ÒѾÓÐ10È˻ظ´
306·Ö²ÄÁÏÓ뻯¹¤Çóµ÷¼Á
ÒѾÓÐ6È˻ظ´
sh073
ľ³æ (ÕýʽдÊÖ)
- Ó¦Öú: 42 (СѧÉú)
- ½ð±Ò: 3735.6
- É¢½ð: 51
- ºì»¨: 4
- Ìû×Ó: 476
- ÔÚÏß: 206.8Сʱ
- ³æºÅ: 1695843
- ×¢²á: 2012-03-16
- רҵ: ·ÖÀë¹ý³Ì
2Â¥2013-10-31 23:22:33















»Ø¸´´ËÂ¥