56 CHARACTER(CHRLEN+4) :: fname
59 REAL(RFREAL) :: localthrust(2), globalthrust(2)
70 localthrust(1) = global%thrustMom
71 localthrust(2) = global%thrustPress
73 CALL mpi_reduce( localthrust,globalthrust,2,mpi_rfreal,mpi_sum,masterproc, &
74 global%mpiComm,global%mpierr )
75 IF (global%mpierr /= 0) CALL
errorstop( global,err_mpi_trouble,__line__ )
77 global%thrustMom = globalthrust(1)
78 global%thrustPress = globalthrust(2)
80 global%thrustTotal = global%thrustMom + global%thrustPress
84 IF (global%flowType==flow_steady .AND. global%myProcid==masterproc)
THEN
85 WRITE(if_thrust,1000,err=10) global%currentIter,global%thrustMom, &
86 global%thrustPress,global%thrustTotal
90 ELSE IF (global%flowType==flow_unsteady .AND. global%myProcid==masterproc)
THEN
91 WRITE(if_thrust,2000,err=10) global%currentTime,global%thrustMom, &
92 global%thrustPress,global%thrustTotal
97 IF (global%thrustOpenClose .AND. global%myProcid==masterproc)
THEN
98 WRITE(fname,
'(A)') trim(global%outDir)//trim(global%casename)//
'.thr'
100 OPEN(if_thrust,file=fname,
form=
'FORMATTED',
status=
'OLD',position=
'APPEND')
109 CALL
errorstop( global,err_file_write,__line__,
'Thrust history file.' )
111 1000
FORMAT(i6,1pe13.4,2e13.4)
112 2000
FORMAT(1pe12.5,3e13.4)
subroutine registerfunction(global, funName, fileName)
int status() const
Obtain the status of the attribute.
**********************************************************************Rocstar Simulation Suite Illinois Rocstar LLC All rights reserved ****Illinois Rocstar LLC IL **www illinoisrocstar com **sales illinoisrocstar com WITHOUT WARRANTY OF ANY **EXPRESS OR INCLUDING BUT NOT LIMITED TO THE WARRANTIES **OF FITNESS FOR A PARTICULAR PURPOSE AND **NONINFRINGEMENT IN NO EVENT SHALL THE CONTRIBUTORS OR **COPYRIGHT HOLDERS BE LIABLE FOR ANY DAMAGES OR OTHER WHETHER IN AN ACTION OF TORT OR **Arising OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE **USE OR OTHER DEALINGS WITH THE SOFTWARE **********************************************************************INTERFACE SUBROUTINE form
subroutine errorstop(global, errorCode, errorLine, addMessage)
subroutine deregisterfunction(global)
subroutine writethrust(global)