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

Making changes to any of the .C files in the installation directory.

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 14, 2018, 13:22
Default Making changes to any of the .C files in the installation directory.
  #1
New Member
 
karnataka
Join Date: May 2017
Posts: 4
Rep Power: 8
shubz is on a distinguished road
Hey foamers,
I'm new to openfoam and I had a very basic question .

I'm using openfoam 2.0.1

I'm trying to use rotatingvelocityBC.

I realised that I wanted to use the BC in a slightly different manner than how it was coded.

I made some changes to the .C file for this BC in the installation directory.(rotatingWallVelocityFvPatchVectorField. c)


Now ,I'm using the simplefoam solver.

When I ran the simulation again I got the same results.

I compiled the solver again and ran the simulation , however got the same result.

Do we have to compile the rotatingWallVelocityFvPatchVectorField.C file again for the changes to the reflect . If yes , how ?

Appreciate the help
shubz is offline   Reply With Quote

Old   May 15, 2018, 03:30
Default
  #2
Senior Member
 
anonymous
Join Date: Jan 2016
Posts: 416
Rep Power: 14
simrego is on a distinguished road
Of course you have to compile your .C file, but you shouldn't modify them in the $FOAM_SRC directory. Make a copy of it and modify that one. You can find a lot of examples on the internet how to write your own solver and compile it.

You can find more details here:
https://cfd.direct/openfoam/user-gui.../#x10-710003.2
simrego 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] funkyDoCalc with OF2.3 massflow NiFl OpenFOAM Community Contributions 14 November 25, 2020 03:30
[swak4Foam] Error bulding swak4Foam sfigato OpenFOAM Community Contributions 18 August 22, 2013 12:41
Problems in compiling paraview in Suse 10.3 platform chiven OpenFOAM Installation 3 December 1, 2009 07:21
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 18:07
Gerris software installation mer Main CFD Forum 2 November 12, 2005 08:50


All times are GMT -4. The time now is 00:58.