CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

Compute canada / batch file / journal file

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 18, 2022, 15:49
Default Compute canada / batch file / journal file
  #1
Member
 
PENANG
Join Date: Aug 2017
Location: Malaysia
Posts: 40
Rep Power: 8
musa19 is on a distinguished road
Hello everyone,
I want to run Fluent unsteady airfoil cases using compute Canada clusters. I am using the batch files and journal files attached. However, my cases are not running successfully.

Please help me accordingly.


Journal File
; SAMPLE FLUENT JOURNAL FILE - UNSTEADY SIMULATION
; ----------------------------------------------
; lines beginning with a semicolon are comments

; Write case and data files in legacy format:
/file/cff-files no

; Read input files (FFF-in.cas and FFF-in.dat):
/file/read-case-data S45.cas

; Write a data (and maybe case) file every 100 time steps:
/file/auto-save/data-frequency 100
/file/auto-save/case-frequency if-case-is-modified

; Write to output sub-directory (appends flowtime and timestep)
/file/auto-save/root-name output/S45-out

; ##### Settings for Transient simulation : #####

; Set the magnitude of the (physical) time step (delta-t)
/solve/set/time-step 0.0001

; Set the max number of iterations per time step:
/solve/set/max-iterations-per-time-step 20

; Set the number of iterations for which convergence monitors are reported:
/solve/set/reporting-interval 1

; ##### End of settings for Transient simulation #####

; Initialize using the hybrid initialization method:
/solve/initialize/hyb-initialization

; Perform unsteady iterations for a specified number of time steps:
/solve/dual-time-iterate 2450,

; Overwrite output files by default:
/file/confirm-overwrite no

; Write final output file (FFF-out.dat):
/file/write-data S45-out

; Write simulation report to file (optional):
/report/summary y "My_Simulation_Report.txt"

; Exit fluent:
"unsteady_simul.jou" 24L, 603C 1,1 Top


Journal File .JOU

#!/bin/bash

#SBATCH --account=XYZ # Specify account
#SBATCH --time=00-03:00 # Specify time limit dd-hh:mm
#SBATCH --nodes=1 # Specify number compute nodes (1 or more)
#SBATCH --cpus-per-task=64 # Specify number cores per node
#SBATCH --mem=0 # Do not change (allocates all memory per compute node)
#SBATCH --ntasks-per-node=1 # Do not change
#SBATCH --job-name=fluent
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

# Remember to edit the journal file
journal_file=unsteady_simul.jou

# Adapt to your input
solver=2ddp

#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
module load StdEnv/2020 # Applies to all clusters
module load ansys/2021R2 # Or newer module versions

slurm_hl2hl.py --format ANSYS-FLUENT > machinefile-$SLURM_JOB_ID
"submit_fluent_bynode.sh" 25L, 955C 1,1 Top



Thank you.

Regards,
musa19 is offline   Reply With Quote

Old   July 19, 2022, 01:00
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
check log file generated in your working folder

however, prorpably your problem is here
Code:
; Exit fluent:
"unsteady_simul.jou" 24L, 603C 1,1 Top
"unsteady_simul.jou" 24L, 603C 1,1 Top
is not a TUI command
__________________
best regards


******************************
press LIKE if this message was helpful
AlexanderZ is offline   Reply With Quote

Old   July 19, 2022, 11:37
Default
  #3
Member
 
PENANG
Join Date: Aug 2017
Location: Malaysia
Posts: 40
Rep Power: 8
musa19 is on a distinguished road
Hi Alex, Thank you for your reply. Yes, the message file shows:

/var/spool/slurmd/job7718886/slurm_script: submit_fluent_bynode.sh: command not found


Can you please how I can submit the file because I need to update it to read the journal file? Thank you.
musa19 is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using PengRobinsonGas EoS with sprayFoam Jabo OpenFOAM Running, Solving & CFD 35 April 29, 2022 15:35
[swak4Foam] Problem installing swak_2.x for OpenFoam-2.4.0 towanda OpenFOAM Community Contributions 6 September 5, 2015 21:03
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch gschaider OpenFOAM Installation 225 August 25, 2015 19:43
centOS 5.6 : paraFoam not working yossi OpenFOAM Installation 2 October 9, 2013 01:41
"parabolicVelocity" in OpenFoam 2.1.0 ? sawyer86 OpenFOAM Running, Solving & CFD 21 February 7, 2012 11:44


All times are GMT -4. The time now is 18:49.