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

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

Register Blogs Community New Posts Updated Threads Search

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 26, 2013, 06: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: 15
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, 19:34
Default
  #2
Senior Member
 
Lieven
Join Date: Dec 2011
Location: Leuven, Belgium
Posts: 299
Rep Power: 23
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, 04:06
Default
  #3
hhh
Senior Member
 
kunar
Join Date: Nov 2011
Posts: 117
Rep Power: 15
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, 06:15
Default
  #4
Senior Member
 
Lieven
Join Date: Dec 2011
Location: Leuven, Belgium
Posts: 299
Rep Power: 23
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


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
[swak4Foam] groovyBC in openFOAM-2.0 for parabolic velocity bc ofslcm OpenFOAM Community Contributions 25 March 6, 2017 11:03
[swak4Foam] build problem swak4Foam OF 2.2.0 mcathela OpenFOAM Community Contributions 14 April 23, 2013 14:59
"parabolicVelocity" in OpenFoam 2.1.0 ? sawyer86 OpenFOAM Running, Solving & CFD 21 February 7, 2012 12:44
[Gmsh] Compiling gmshFoam with OpenFOAM-1.5 BlGene OpenFOAM Meshing & Mesh Conversion 10 August 6, 2009 05: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 16:10.