Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

error-messages

Empfohlene Antworten

Veröffentlicht

Hallo zusammen,

ich habe beim Compilieren des folgenden Programms, diese Fehlermeldungen bekommen:

Zeile 16:warning: implicite declaration of function Berechnung_1

Zeile 25:error: conclicting types for Berechnung_1

Zeile16:error: previous implicit declaration of Berechnung_1 was here

Zeile 41:warning: implicite declaration of function Berechnung_2

Zeile 64:error: conclicting types for Berechnung_2

Zeile 41:error: previous implicit declaration of Berechnung_1 was here

#include <udf.h>

#include <unsteady.h>

DEFINE_PROFILE(inlet_x_velocity,t,i)

{

real x[3];

face_t f;

real y;

begin_f_loop(f,t)

{

F_CENTROID(x,f,t);

y=x[1];

F_PROFILE(f,t,i)=Berechnung_1();

}

end_f_loop(f,f)

}

real Berechnung_1()

{

static real X=0; /*Position des Wasserspiegels in der Kapillare*/

static real U=0; /*Geschwindigkeit des Wasserspiegels in der Kapillare*/

real X1,X2,X3,X4;

real U1,U2,U3,U4;

real F1,F2,F3,F4;

real Delta_t; /*Zeitschritt in Sekunden*/

Delta_t=CURRENT_TIMESTEP;

X1=X;

U1=U;

F1=Berechnung_2(X1,U1);

X2=X+(U1*Delta_t)/2;

U2=U+(F1*Delta_t)/2;

F2=Berechnung_2(X2,U2);

X3=X+(U2*Delta_t)/2;

U3=U+(F2*Delta_t)/2;

F3=Berechnung_2(X3,U3);

X4=X+U3*Delta_t;

U4=U+F3*Delta_t;

F4=Berechnung_2(X4,U4);

X=X1+(Delta_t/6)*(U1+(2*U2)+(2*U3)+U4);

U=U1+(Delta_t/6)*(F1+(2*F2)+(2*F3)+F4);

return U;

}

real Berechnung_2(real C,real D)

{

real K;

#define g 9.8 /*Erdbeschleunigung*/

#define x_0 0.02 /*Eintauchtiefe*/

#define nu 0.000000893 /*Kinematische Viskositaet*/

#define rK 0.0004 /*Radius der Kapillare*/

#define sigma 0.072 /*Oberflaechenspannung*/

#define cos_theta 1 /*cos des Kontaktwinkels = cos(theta*3,1416/180) */

#define rho 997 /*Dichte*/

K=(-((C*g)/(C+x_0)) - ((D*D)/(C+x_0))) - (((8*nu)/((rK*rK)*D)) + ((2*sigma*cos_theta)/(rho*(rK*(C+x_0)))));

return K;

}

Ich bin für jede Hilfe dankbar.

Gruß, Burkhard

Danke für den Tipp. Habe es ausprobiert und es funktioniert.

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.