|
[Sponsors] |
New BoundaryCondition: how to modify a single component of a field? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 26, 2012, 13:35 |
New BoundaryCondition: how to modify a single component of a field?
|
#1 |
New Member
Lucio Cardillo
Join Date: Apr 2012
Posts: 5
Rep Power: 14 |
hello,
I need to make for a simulation a new type of boundary condition. This is my first attempt of programming with openFoam and I'm able to realize a time varying boundary condition starting from oscillatingFixedValueFvPatchField file. As in oscillatingBC the field varies with time and it is great for a single component field, such as the pressure p. But if I want to vary only a single component of a velocity field for example, I didn't understand how I can do that. I Understood that the field class belongs from List class, and so I tried with a for cycle and edit one by one all the elements of the list (field), but if I try to reach the x() y() or z() method of the single element I get an error because only the vector class have these method.. so how I can reach this method and vary single component of element of the field list? best regards and sorry for my bad english Lucio |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Moving mesh | Niklas Wikstrom (Wikstrom) | OpenFOAM Running, Solving & CFD | 122 | June 15, 2014 06:20 |
Tangential component of gradient of scalar field at surface | tehache | OpenFOAM Running, Solving & CFD | 5 | July 4, 2013 07:13 |
Problem with rhoSimpleFoam | matteo_gautero | OpenFOAM Running, Solving & CFD | 0 | February 28, 2008 06:51 |
how 2 freeze 1 phase flow field & start lagrangian | KK | CFX | 5 | February 14, 2008 16:48 |
Diffusion component at inlet | Balaji | FLUENT | 2 | August 8, 2005 07:37 |