CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM

I want to arrange all source file into Single Folder :Debate Urgent Help

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

Like Tree2Likes
  • 1 Post By hhh
  • 1 Post By Lieven

Reply
 
LinkBack Thread Tools Display Modes
Old   July 26, 2013, 05:41
Default I want to arrange all source file into Single Folder :Debate Urgent Help
  #1
hhh
Senior Member
 
kunar
Join Date: Nov 2011
Posts: 117
Rep Power: 6
hhh is on a distinguished road
Hai OF Friends,

For example if you look cavity problem in icoFoam, Here


O Folder-->P & U

Constant Folder---> PolyMesh (blockMeshDict )& transportProperties
System Folder----->controlDict,fvSchemes,fvSolution

I want to arrange all related source file into single folder, corresponding to O Folder( Inside P &U) Constant Folder [Inside PolyMesh (blockmeshDict--related source file) & transportProperties] and System Folder[controlDict (related source file), fvSchemes (related source file), fvSolution (related source file)


I am little bit confused what are the exact source file related to O ,Constant, and System Folder. Kindly guide me how to arrange all source.

Thanks for Your Valuable Time

immortality likes this.
__________________
kunar
hhh is offline   Reply With Quote

Old   July 26, 2013, 18:34
Default
  #2
Senior Member
 
Lieven
Join Date: Dec 2011
Location: Leuven, Belgium
Posts: 297
Rep Power: 14
Lieven will become famous soon enough
Hi Kumar,

The default folder-structure of the OpenFOAM case is actually not so bad, but you need to see the idea behind it:
* constant: "what to solve" (physics, geometry)
* system: "how to solve" (solvers, discretization, ...)
* 0: "starting point for solving" (boundary and initial conditions)

I'd recommend you to try to live with the given structure and keep it. It will cause the least confusion and problems.

Cheers,

Lieven
immortality likes this.
Lieven is offline   Reply With Quote

Old   July 27, 2013, 03:06
Default
  #3
hhh
Senior Member
 
kunar
Join Date: Nov 2011
Posts: 117
Rep Power: 6
hhh is on a distinguished road
Thanks for reply & information Lieven,

Why I am asking this question is, I want to work more mathematically(For example,In case if you change the equation inside the source file, I want to see what happen in the results and how it works) for better understanding.

[I'd recommend you to try to live with the given structure and keep it. It will cause the least confusion and problems]------->you are correct, just for try, because I want to learn more on mathematical equation and I have to play around inside the source file. kindly help me what are source file related to O,Constant & System folder and how I can arrange all files into single folder,I am little bit confused.

Thanks for your valuable time
Have a nice day
__________________
kunar
hhh is offline   Reply With Quote

Old   July 27, 2013, 05:15
Default
  #4
Senior Member
 
Lieven
Join Date: Dec 2011
Location: Leuven, Belgium
Posts: 297
Rep Power: 14
Lieven will become famous soon enough
Hi Kumar,

If you really want to put all source files in one folder, I'd suggest to work with symbolic links. This way you keep the OF structure but you link each of the files to a file in a separate folder. For example, create a folder CASEDIR/inputs, move all files into this folder and link the files as
Code:
ln -s inputs/U 0/
ln -s inputs/p 0/
ln -s inputs/controlDict system/
...
In it's turn, you can link the inputs-folder to an other folder which contains the different input-setups
Code:
ln -s input1/ inputs/
So change input is merely changing input1 to an other directory.

I don't see the advantage at all why you would want to do something like this since the solution will always be overwritten (you're still working within the same case-folder). If I were you, I'd make a separate case from each input. But if it makes you happy, this is one way of doing it.

Cheers,

Lieven
Lieven is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
groovyBC in openFOAM-2.0 for parabolic velocity bc ofslcm OpenFOAM Pre-Processing 24 August 23, 2015 22:41
build problem swak4Foam OF 2.2.0 mcathela OpenFOAM Installation 14 April 23, 2013 13:59
"parabolicVelocity" in OpenFoam 2.1.0 ? sawyer86 OpenFOAM Running, Solving & CFD 21 February 7, 2012 12:44
Compiling gmshFoam with OpenFOAM-1.5 BlGene Open Source Meshers: Gmsh, Netgen, CGNS, ... 10 August 6, 2009 04:26
error while compiling the USER Sub routine CFD user CFX 3 November 25, 2002 16:16


All times are GMT -4. The time now is 06:53.