| ²é¿´: 2054 | »Ø¸´: 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 ] |
» ²ÂÄãϲ»¶
¹ú×ÔÈ»ÆÀÉóÒâ¼û
ÒѾÓÐ8È˻ظ´
¹ú×ÔÈ»ÃæÉϸ´ÅÌ~»¶ÓÌÖÂÛ
ÒѾÓÐ14È˻ظ´
ϵͳ²é²»µ½
ÒѾÓÐ11È˻ظ´
ÓжàÉÙÈËÊǽñÌì²éϵͳ֪µÀ½á¹ûµÄ£¿
ÒѾÓÐ18È˻ظ´
Ϊʲô×ÊÖúÊý¸÷´ó¸ßУ¶¼´´Ð¸ߣ¬×Ô¼ºÉêÇëÔõô¾ÍÕâôÄÑ
ÒѾÓÐ12È˻ظ´
ÓÐûÓÐÈÔûÊÕµ½ÐÅÏ¢µÄ
ÒѾÓÐ3È˻ظ´
µ¼Ê¦Í²ۣºÎÒÔõô̯ÉÏÁËÕâô¸ö¼«Æ·Ñо¿Éú£¡
ÒѾÓÐ8È˻ظ´
»ù½ð²»ÖУ¬¹²Ãã
ÒѾÓÐ11È˻ظ´
Â鷳ר¼ÒÃÇ¿´¿´ÆÀίÃǵÄÒâ¼û£¨F¿ÚÃæÉÏ£©
ÒѾÓÐ9È˻ظ´
2026ÄêÒ¶ÆóËï»ù½ð
ÒѾÓÐ6È˻ظ´
sh073
ľ³æ (ÕýʽдÊÖ)
- Ó¦Öú: 42 (СѧÉú)
- ½ð±Ò: 3735.6
- É¢½ð: 51
- ºì»¨: 4
- Ìû×Ó: 476
- ÔÚÏß: 206.8Сʱ
- ³æºÅ: 1695843
- ×¢²á: 2012-03-16
- רҵ: ·ÖÀë¹ý³Ì
2Â¥2013-10-31 23:22:33










»Ø¸´´ËÂ¥
ͶƱ: