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

Vector Fields and Operators on the Boundary

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

Reply
 
LinkBack Thread Tools Display Modes
Old   February 10, 2011, 14:04
Default Vector Fields and Operators on the Boundary
  #1
New Member
 
Noggin
Join Date: Sep 2010
Posts: 7
Rep Power: 6
Noggin is on a distinguished road
Hi Foamers,

just wondering if anyone knows if N Vector Fields are readily available in OpenFoam 1.7.0.

I want to have a geometric field with componants of, say, vectors with 5 elements. I hoping to have such a vector field which includes related algebra. I'm thinking that a geometricField<List<5>,...> would be ok to store the data but would not have the algebra provided?

I tried creating an N vector copying and pasting the vector definition, but it seems the VectorSpace class requires a constant int.

I'm a little muddled about what the best approach would be. If there is a better solution, and any hints about the above muchly appreciated.

Similarly, is an NxN matrix field, to make the Jacobian matrix geometric field possible?


Finally, is it possible, and if so, how would one go about applying the standard field operators only on the boundary conditions?


Many thanks.
Noggin is offline   Reply With Quote

Old   February 14, 2011, 05:37
Default
  #2
New Member
 
Noggin
Join Date: Sep 2010
Posts: 7
Rep Power: 6
Noggin is on a distinguished road
Just in case anyone else wants to do it, to make an N Vector geometric field, there is a bunch of copying and pasting to be done. Unfortunately it is a constant size, 5 in my case.
Start off by making a new 5 vector: copy vector.C/H, Vector.C/H dimensionedVector, and making new versions of them - I changed the .C files to .H files as well otherwise the wmake system seemed not to find dependencies.
Then update the vectorFieldFwd.H, vectorField.H,vectorIOField.C/H.
Next update everything in the volFields directory. (All this is done in a local directory so as not to recompile the whole source - OpenFOAM very good code to enable this!)
So far, so good, but the boundaries need to be individually updated as well. I have only included the calculated boundary so far which included a copy and paste of the fvPatchFields/Fwd.H/C but not fvPatchField, and the calculated boundary directory.

Not sure if this is a useful solution generally.

Next to try and get the operators to work on it...

Still not sure about operators operating exclusively on boundaries ...
Noggin is offline   Reply With Quote

Old   February 15, 2011, 03:43
Default
  #3
Senior Member
 
Kathrin Kissling
Join Date: Mar 2009
Location: Besigheim, Germany
Posts: 134
Rep Power: 8
kathrin_kissling is on a distinguished road
Hi Noggin,

I'm not really sure what you are planning to to, but I think everything you want is there in OpenFoam-1.6-ext. (There src/VectorN)

See www.extend-project.de for details about downloading, installation and so one.

If you have more questions feel free to ask!

Best

Kathrin
kathrin_kissling is offline   Reply With Quote

Old   February 17, 2011, 11:43
Default
  #4
New Member
 
Noggin
Join Date: Sep 2010
Posts: 7
Rep Power: 6
Noggin is on a distinguished road
Thanks Kathrin, that's exactly what I was looking for. That should save me an awful lot of time, so long as I can install 1.6-extend ...
Noggin is offline   Reply With Quote

Reply

Tags
vectors boundaries

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
List of PDE operators titio OpenFOAM 1 February 6, 2009 20:01
List of PDE operators titio OpenFOAM 0 February 6, 2009 14:03
Implementing a New Boundary Condition cliffoi OpenFOAM Running, Solving & CFD 8 February 11, 2008 13:11
Nonlinear Multigrid: Coarse Grid Operators Greg Lewin Main CFD Forum 0 December 1, 2006 10:39
Implementing boundary condition for LES Linfeng BI Main CFD Forum 2 December 9, 2002 09:58


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