|
[Sponsors] |
October 30, 2014, 10:13 |
|
#1 |
Member
sajad
Join Date: Apr 2014
Location: Iran
Posts: 46
Rep Power: 12 |
hi
I make gradient boundry for T as below: Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.0.1 | | \\ / A nd | Web: www.OpenFOAM.com | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class volVectorField; location "0"; object gradient; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 -1 0 1 0 0 0]; internalField uniform (0,0,0); boundaryField { floor { type zeroGradient; } ceiling { type zeroGradient; } inlet { type fixedValue; value uniform (0,0,0); } outlet { type zeroGradient; } block { type fixedValue; value uniform (30,30,30); } frontback { type empty; } } Code:
/*---------------------------------------------------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.1.0 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ Build : 2.1.0-0bc225064152 Exec : wallGradT Date : Oct 30 2014 Time : 18:43:10 Host : "sajad-pc" PID : 13235 Case : /home/sajad/Desktop/heatedCavity nProcs : 1 sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE). fileModificationChecking : Monitoring run-time modified files using timeStampMaster allowSystemOperations : Disallowing user-supplied system call operations // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time Create mesh for time = 0 --> FOAM FATAL IO ERROR: wrong token type - expected Scalar, found on line 20 the punctuation token ',' file: /home/sajad/Desktop/heatedCavity/0/gradient::internalField at line 20. From function operator>>(Istream&, Scalar&) in file lnInclude/Scalar.C at line 91. FOAM exiting --------- edit: How can I set boundry for gradientT? ----------- edit 2: how can I calculate gradT in wall? Last edited by wyldckat; November 1, 2014 at 14:45. Reason: posted a few minutes apart... and added [CODE][/CODE] markers |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Gradient Computation: finite differences and adjoint method | doan.nak | SU2 | 3 | November 22, 2017 05:37 |
calculate gradient tension in udf | mohsenz_136 | Fluent UDF and Scheme Programming | 1 | January 5, 2013 03:15 |
WSS and normal velocity gradient for the slanted pipe | wanna88 | FLUENT | 2 | October 1, 2012 22:34 |
Temperature Gradient at Wall | sven | OpenFOAM | 7 | November 1, 2010 17:25 |
calculate the temperature gradient on a profile | arther | FLUENT | 0 | April 19, 2006 23:12 |