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

Search Results

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

Showing results 1 to 3 of 3
Search took 0.00 seconds.
Search: Posts Made By: Lieven
Forum: OpenFOAM Programming & Development June 30, 2014, 13:52
Replies: 21
Views: 20,787
Posted By Lieven
Dear Dominik, My apologies, indeed the...

Dear Dominik,

My apologies, indeed the method I describe above can be used when adding a new BC to the sources, not by directly writing it in the e.g. 0/T-file. I missed this small detail ;-)

I...
Forum: OpenFOAM Programming & Development June 30, 2014, 10:19
Replies: 21
Views: 20,787
Posted By Lieven
Dear Yeru, You can access the x-coordinates...

Dear Yeru,

You can access the x-coordinates (and similarly y and z) of a patch through:

const vectorField& c = patch().Cf();
const scalarField xcoord(c & Vector::X);


If you need the...
Forum: OpenFOAM Programming & Development August 2, 2013, 02:10
Replies: 21
Views: 20,787
Posted By Lieven
Hi Srivaths, You can extract the...

Hi Srivaths,


You can extract the coordinates in one direction with

scalarField Xcoord = mesh.C().component(Vector::X);

You can do the same for the Y and Z coordinates. Now this field can...
Showing results 1 to 3 of 3

 
Forum Jump

All times are GMT -4. The time now is 18:03.