CFD Online Logo CFD Online URL
Home > Forums

Blog Entries

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


Compile the solver laplacianFoam

Posted August 17, 2016 at 10:22 by kindle
Updated February 23, 2017 at 04:13 by kindle

laplcacianFoam is an implemented solver in OpenFOAM, which can be found in WM_PROJECT_DIR/platforms/.../bin (executable), .../application/solver/basic (dep) and WM_PROJECT_DIR/application/solver/basic (src).

Tried to compile from $FOAM_RUN, using laplacianFoam1. After comparing with authentic one, success.
New Member
Posted in programming, Solver
Views 940 Comments 0 kindle is offline Edit Tags

Writing the last iteration for steady state simulations

Posted August 17, 2016 at 05:09 by Ramwi

Ok, I have a very bad memory and furthermore, I did not find the solution to the bellow described problem right away. So, I will use this place to store the solution for future use.

Note: The proposed approach might be overcomplicated. If it is so, please let me know what is the "proper way".

Problem description: You run a steady state simulation (e.g. simpleFOAM) and you control the endTime (number of iterations) via the residualControl. Thus, the number of iterations...
New Member
Posted in Tips and tricks
Views 1225 Comments 1 Ramwi is offline Edit Tags

Accessing internal field and mesh from within boundary condition

Posted August 6, 2016 at 07:00 by kaifu

very useful.
Originally Posted by mchurchf View Post
Thank you all for your help,

I was able to implement my boundary condition as well. I used the following code to access the internal velocity field and the mesh two layers of cells inward from the boundary:

//  Set up access to the internal velocity field and mesh
    const volVectorField& U =
    const fvMesh& mesh = patch().boundaryMesh().mesh();
Posted in Uncategorized
Views 304 Comments 0 kaifu is offline Edit Tags

How to calculate the polynomial coefficients of any arbitrary polynomial to fit data

Posted August 1, 2016 at 08:06 by Tobi

Dear all,

if you are interested in the calculation of polynomial coefficients to fit some data, you can check the method of least squares on my homepage. Here I explained everything in detail and also gave an example how to build the matrix A and the solution vector b for the problem we are discussing there. The polynomial that I am using in the example is:

\ln(\mu) = A + B \ln(T) + C\ln(T)^2 + D \ln(T)^3

How to build the matrix A and the solution vector...
Tobi's Avatar
Super Moderator
Posted in Uncategorized
Views 385 Comments 0 Tobi is offline Edit Tags

Parallel installation incorrectly compiled

Posted July 23, 2016 at 11:35 by ACGray

Problem solved, turns out I had both OpenMPI and MPICH installed which I think was throwing off the mpirun command, uninstalled both, reinstalled MPICH 3.2 and then SU2 and everything now seems to be working fine!
New Member
Posted in Uncategorized
Views 251 Comments 0 ACGray is offline Edit Tags

All times are GMT -4. The time now is 05:22.