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

Implementing New Viscosity Models !

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 27, 2010, 06:49
Post Implementing New Viscosity Models !
  #1
Senior Member
 
Join Date: Sep 2010
Posts: 226
Rep Power: 17
T.D. is on a distinguished road
Hi Foamers,

I am trying to implement my new viscosity model, like those in:

$WM_PROJECT_DIR/src/transportModels/incompressible/viscosityModels/

I copied all the src folder to my $WM_PROJECT_USER_DIR

then i made wmake

but it didnot work, i had an error


So How to do that, what we really need to copy and change in order wmake will work ?

thanks


T.D.
T.D. is offline   Reply With Quote

Old   September 28, 2010, 04:15
Default
  #2
ata
Senior Member
 
ata's Avatar
 
ata kamyabi
Join Date: Aug 2009
Location: Kerman
Posts: 323
Rep Power: 18
ata is on a distinguished road
Hi T.D. again
How are you? I hope you are doing very well.
1. Don't copy whole of the src folder. Just copy your desired file.
2. See the users' guide pdf.
3.For compiling whole src in terminal change to src folder and type ./Allwmake
Good luck

Ata
ata is offline   Reply With Quote

Old   September 28, 2010, 04:56
Post More explanation please
  #3
Senior Member
 
Join Date: Sep 2010
Posts: 226
Rep Power: 17
T.D. is on a distinguished road
Hi ata, thank you so much for your great help
you are really a great co operative person thank you so much

but can you explain me more please please because i tried all, and in user guide i couldn't find it.

1-what to copy? it is not a file, it should be a folder?, like crosspowerlaw
and if i copied it from the main directory of openfoam, where to paste it in the User directory?
since i have OpenFoam in the root (WM_PROJECT_DIR) and my own directory (WM_PROJECT_USER_DIR), i hope you understood me?

2-then for ./Allwmake where to run and do that in which directory? is it the main (WM_PROJECT_DIR)?

3-What about Calculated boundary conditions? If you look to my previous model syntax i sent to you, you see the term "J" and the field "c".
What if i need to apply a BC to a patch in "c" but that depends on "J", for example i want to set J=0 in the patch BC of "c" field.


Thanks a lot my brother

yours,
T.D.
T.D. is offline   Reply With Quote

Old   September 28, 2010, 06:25
Default
  #4
ata
Senior Member
 
ata's Avatar
 
ata kamyabi
Join Date: Aug 2009
Location: Kerman
Posts: 323
Rep Power: 18
ata is on a distinguished road
Hi T.D.
Excuse me I'm little busy.
1. For simplicity copy the folder beside the main.
2. In terminal go to the desired folder and type wmake.
3. I don't know.
Best regards

Ata
ata is offline   Reply With Quote

Old   September 28, 2010, 06:55
Post thanks
  #5
Senior Member
 
Join Date: Sep 2010
Posts: 226
Rep Power: 17
T.D. is on a distinguished road
thanks a lot
no problem
you, execuse me
T.D. 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
Implementing low Re number k-e models in Fluent. kiran FLUENT 1 July 3, 2017 18:04
Implementing new viscosity model prjohnston OpenFOAM Running, Solving & CFD 6 July 3, 2015 05:26
Viscosity properties for transport models ozzythewise OpenFOAM Running, Solving & CFD 4 October 7, 2010 21:39
TwoPhaseEulerFoam viscosity models juho OpenFOAM Running, Solving & CFD 2 May 20, 2008 12:31
non-linear eddy viscosity models George Main CFD Forum 0 December 11, 2006 20:14


All times are GMT -4. The time now is 02:32.