Unraveling the Mystery of 'rfac' in Fortran

  • Thread starter Thread starter mushi
  • Start date Start date
  • Tags Tags
    Fortran Mystery
AI Thread Summary
The term 'rfac' in Fortran appears to be a user-defined function or variable, as there is no standard function by that name. Users suggest performing a text search across the entire codebase to locate its definition and instances of use, which can provide clarity on its purpose. A common method for this is using the 'grep' command in Linux to identify all occurrences of 'rfac'. This approach can help in understanding how 'rfac' interacts with other parts of the code. Overall, the discussion emphasizes the importance of examining the code context to unravel the mystery of 'rfac'.
mushi
Messages
23
Reaction score
0
Hi guys,

I know I may sound stupid to me many of you but can anybody tell me what does 'rfac' do in Fortran.
 
Engineering news on Phys.org
I don't understand your question. Can you provide some context?
 
Actually I am working on a code that has been written by someone else and I found 'rfac(X)' in that code. The code is written in Fortran and I am trying to use it in Matlab. I have checked everywhere but could not find any function named 'rfac'.

I hope I am clear now.
 
my guess is it's a locally defined variable or function.

a google search on 'rfac fortran' turns up lots of incidences but in ones i found it was defined in the code.
maybe something passed to a sub?

can you do text search on the program?
 
have you done a text search for rfac in all your fortran sources? I usually work on Linux and a 'grep' for a given function or variable name returns all the places where is being used...you can gain a lot of insight very quickly by viewing all the usage for a given variable/function.
 
Hi all, I have a question. So from the derivation of the Isentropic process relationship PV^gamma = constant, there is a step dW = PdV, which can only be said for quasi-equilibrium (or reversible) processes. As such I believe PV^gamma = constant (and the family of equations) should not be applicable to just adiabatic processes? Ie, it should be applicable only for adiabatic + reversible = isentropic processes? However, I've seen couple of online notes/books, and...
I have an engine that uses a dry sump oiling system. The oil collection pan has three AN fittings to use for scavenging. Two of the fittings are approximately on the same level, the third is about 1/2 to 3/4 inch higher than the other two. The system ran for years with no problem using a three stage pump (one pressure and two scavenge stages). The two scavenge stages were connected at times to any two of the three AN fittings on the tank. Recently I tried an upgrade to a four stage pump...

Similar threads

Replies
3
Views
3K
Replies
3
Views
2K
Replies
17
Views
6K
Replies
62
Views
12K
Replies
4
Views
2K
Replies
8
Views
4K
Replies
20
Views
6K
Replies
17
Views
5K
Back
Top