Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: rih5342
  • Content: Threads
  • Order by date
  1. rih5342

    RPC define types

    I'm using W7-64 and cygwin gcc 6.3.1 Any hints for dealing with #define <a name="" C:\cygwin64\usr\local\bin\gcc.exe -Wextra -Wall -Wfloat-equal -Wundef -Wshadow -Wpointer-arith -Wcast-align -Wstrict-prototypes -Wstrict-overflow=5 -Wwrite-strings -Waggregate-return -Wcast-qual...
  2. rih5342

    derived type constructors

    Hello, I'm using gcc 6.3 on w7-64, with these gfortran compile flags FLAGS = -std=f2008 -O2 -Wall -Wextra -fno-range-check Is this legal code? MODULE WAV integer, parameter :: int2 = selected_int_kind(2) integer, parameter :: int4 = selected_int_kind(4) integer, parameter...
  3. rih5342

    C Headers, part 3

    Making progress. Next error involves macros, and reviewing Kernigen and Ritchie 4.11.2 Macro Substitution A definition has the form #define name replacement text It calls for a macro substitution of the simplest kind-subsequent occurrences of the token name will be replaced by the replacement...
  4. rih5342

    C headers, part 2

    Non-C programmer here. I'm using GCC and Gfortran V5.2 (which BTW self compiled perfectly), on Windows7(64). I'm getting this C error. rpc/types.h:78:9: error: unknown type name '__u_char' typedef __u_char u_char; What does the double underscore do, what does it mean? Thank you.
  5. rih5342

    c headers

    Non C programer here. The headers at the top of a C function are my problem. From the "compiler/operating-system/effective" point of view, what's the difference between #include <rpc/xdr.h> #include "rpc/xdr.h" Both yield errors. The compiler can't find the directory in <> version. The...
  6. rih5342

    C language: error: cast from pointer to integer of different size

    I'm using Windows-7 64bit, with gcc V5.2, with MinGW, and trying to compile portablexdr-4.9.1 This piece of C static bool_t xdrmem_setpos(xdrs, pos) register XDR *xdrs; u_int pos; { register caddr_t newaddr = xdrs->x_base + pos; register caddr_t lastaddr = xdrs->x_private + xdrs->x_handy...
  7. rih5342

    Vertical tab in a Windows OS window

    I'm running my program from a windowsOS command line window and outputting data and character strings to the same window. I can write non-advancing output and overwrite the same line via backspaces and writing again (on the same line). Is it possible, with Fortran, to do an upward vertical...
  8. rih5342

    Recreating a histogram from statistical moments

    There's alot of information available about generating moments from a histogram but I haven't found a clear example of using the statistical moments to approximate the original histogram. Is there a function that approximates a histogram from its statistical moments?
  9. rih5342

    twirly thing

    I'm a new user of gfortran and am wondering how you implement a non-advancing write. The following code fragment works fine under IVF. CLOSE(UNIT=6) OPEN(UNIT=6, CARRIAGECONTROL='FORTRAN') DO I = 1, 1000 WRITE(6, 10) '/' WRITE(6, 10) '-' WRITE(6, 10)...
  10. rih5342

    Gfortran + Windows7

    I'm trying to get this to work with Gfortran and Windows7. Anyone have experience with accessing the OS under Seven? Thanks. MODULE IFWIN USE, INTRINSIC :: ISO_C_BINDING IMPLICIT NONE PRIVATE PUBLIC QueryPerformanceCounter INTERFACE...
  11. rih5342

    Binary write format for Real

    Below is a sample of a code that runs with Intel but not GFORTRAN. Writing a real in binary format is an extension of the Fortran standard. My Question: What is the best way to do this? How do you extract the binary of a real for printing? Thank you. IMPLICIT NONE integer :: ii = 1 real...
  12. rih5342

    Loud compressor

    Hello Motor Experts, I'm new to motors. I'm trying to make an air conditioning scroll compressor QUIET. The motor has a capacitor wired in. A signal analyser spectra of the current has really strong harmonic content every 60 Hz, as does an accelerometer mounted on the compressor, and as...
  13. rih5342

    Frequency domain integration and differentiation

    I have a question about phase shifts when integrating or differentiating in the frequency domain. To verify my calculations, I generate test cases in the time domain and compare with my frequency domain calculations. I take velocity data (a single frequency sine wave) and calculate...
  14. rih5342

    Computational Acoustics #2, BCs

    I'm trying to reduce cell count by reducing the amount of model being meshed. I've got CAD of an intake manifold consisting of several runners pulling air from a common plenum. At this time, I prefer to model just 1 runner, by trimming the model where it connects with the plenum. Which of...
  15. rih5342

    Computational Acoustics Test Case

    3 versions of the same question. What is a typical model problem for computational acoustics? What simple geometry and conditions are considered useful for testing the integrity of an algorithm or SW package? What are the canonical problems of computational acoustics? Thank you.
  16. rih5342

    nyquist vs averaging

    Suppose the following: 1. You have an infinite amount of periodic data available for post processing. 2. The information of interest is at a frequency higher than your data-acq card can sample. 3. You are able to cut the data into an infinite number of single cycle data sets. 4. You...

Part and Inventory Search