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

Junction Box Routine - Proper path definition

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 15, 2016, 05:34
Default Junction Box Routine - Proper path definition
  #1
Member
 
Join Date: Jan 2016
Posts: 34
Rep Power: 10
honcho62 is on a distinguished road
Hi everyone,

I'm trying to implement a Junction Box Routine and I'm using the template and tutorial from section 18 in the help section. However I think there is a mismatch between how they define their path and how I should implement it.

My fortran file is exactly the same as the file in section 18 but it crashes pretty much in the beginning and produces the following OUT file error.

Code:
Details of error:-
---------------
Error detected by routine PEEKCS
CDANAM = /USER/INPUT_FILE
CRESLT   = NONE

Current Directory :/
I defined INPUT_FILE in the command editor and the out file does show it but I suppose I'm not referencing it right with respect to file hierarchy. And does the folder USER need to be created anywhere prior?

I run CFX pre from the bench where I have defined a working directory. Should I consider that directory home? Or is it the literal home in my desktop?
honcho62 is offline   Reply With Quote

Old   January 15, 2016, 06:04
Default
  #2
Member
 
Peter
Join Date: Sep 2011
Location: Germany
Posts: 39
Rep Power: 14
PeMo is on a distinguished road
The /USER/ or /USER_DATA/ folder are within the Memory Managment System (MMS) of CFX and you can not access it directly. They are used to store variables which need to be accessed by the solver.
And yes, the folder need to be created beforehand with the PSHDIR (folder) and MAKDAT (variable) command.
But it should be all described in the tutorials. Be sure, that the path of the compiled Fortran files is set correctly in CFX-Pre and that you have actived the junction Boxes in the solver Tab.
PeMo is offline   Reply With Quote

Old   March 7, 2018, 08:26
Default Junction box routine
  #3
New Member
 
Laghouat
Join Date: Feb 2018
Posts: 7
Rep Power: 8
zaoui is on a distinguished road
Hi all
I want to set up a simulation in Ansys-cfx with user Junction Box Routine(in Fortran). This JBR is called at the end of each timestep in order to get the the velocity field components (for special area), treat them and inject them again into the solver for the next time step.So, my question is exactely how can a user fortran routine deal (get ,inject...) with the velocity field components every timestep. Please I need your help or a tutorial for this special purpose
Thanks for all
zaoui is offline   Reply With Quote

Old   March 7, 2018, 16:37
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,728
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
This sounds like a very dangerous thing to do. Why can't you use a source term or something like that to do it?

You are going to need a detailed knowledge of the MMS to do what you propose, the tutorials available will not cover that.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Reply

Tags
fortran code, junction box

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Junction Box Routine Shared Object Library sam CFX 0 March 3, 2008 12:52
New turbulence model - CEL or Junction Box? flga CFX 3 October 31, 2006 03:04
Junction Box Anil CFX 2 June 27, 2006 10:18
User CEL or Junction Box routine? Lexi CFX 6 January 22, 2004 08:52
junction box routine Lexi CFX 2 January 21, 2004 04:55


All times are GMT -4. The time now is 23:41.