CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[waves2Foam] Using cellZone to represent relaxationShape or relaxationZone?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 26, 2016, 09:16
Default Using cellZone to represent relaxationShape or relaxationZone?
  #1
New Member
 
Weiwen Zhao
Join Date: Dec 2013
Posts: 19
Rep Power: 12
wwzhao is on a distinguished road
Hi Jacobsen,

I've used waves2foam and it's really an excellent tool for generating waves.

Do you consider using cellZone to represent relaxationShape or relaxationZone?


Best,
Weiwen
wwzhao is offline   Reply With Quote

Old   May 26, 2016, 13:31
Default
  #2
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,900
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Hallo Weiwen,

No, I do not have any plans of defining relaxation zones through cellZones. It should be possible, but can you come with some arguments for this?

Note that the current implementation allows for more flexibility in defining the local coordinate system and hence the spatial variation in the relaxation factors. Dual information should be provided to allow for that with cellZones.

Kind regards

Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.
ngj is offline   Reply With Quote

Old   May 30, 2016, 08:00
Default
  #3
New Member
 
Weiwen Zhao
Join Date: Dec 2013
Posts: 19
Rep Power: 12
wwzhao is on a distinguished road
Hi Niels,

Sorry for the late reply. We implemented a dynamic mesh moving with a running ship in waves, i.e., the grid is doing planar motion with the ship. So for us, it is more convenient to use cellZones instead of fixed regions to represent the relaxation zones.

About the local coordinate system for spatial variation for relaxation factors, I think we can refer to the patchLocal in refineMeshDict.

Code:
// - patchLocal : coordinate system different for every cell. Specify in
//   patchLocalCoeffs section below.
coordinateSystem patchLocal;

patchLocalCoeffs
{
    patch outside;  // Normal direction is facenormal of zero'th face of patch
    tan1 (1 0 0);
}
The local coordinate system is defined by a specific patch name through the dictionary. What's your opinions?


Best,
Weiwen
wwzhao is offline   Reply With Quote

Old   May 30, 2016, 15:48
Default
  #4
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,900
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Hi Weiwen,

I believe that you will obtain the thing you want with the use of the frozen type of relaxation zone. First you define the shape as frozen and you can then use one of the regular shapes to define the cells. In your case, it means that the cellSet is not updated each time, which is exactly what you need on horizontally translating grids. It is also possible to restart the simulation.

Kind regards

Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.
ngj is offline   Reply With Quote

Old   May 31, 2016, 08:35
Default
  #5
New Member
 
Weiwen Zhao
Join Date: Dec 2013
Posts: 19
Rep Power: 12
wwzhao is on a distinguished road
Hi Niels,

Thanks for pointing out that. I will try to use frozen type and report back.


Best,
Weiwen
wwzhao is offline   Reply With Quote

Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
decomposePar problem: Cell 0contains face labels out of range vaina74 OpenFOAM Pre-Processing 37 July 20, 2020 05:38
[snappyHexMesh] Error snappyhexmesh - Multiple outside loops avinashjagdale OpenFOAM Meshing & Mesh Conversion 53 March 8, 2019 09:42
[Salome] SALOME : How to define several CellZone utawalpa OpenFOAM Meshing & Mesh Conversion 0 March 23, 2018 13:19
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 18:57
OF-2.2.x: Derived class from cellZone and "undefined symbol error" A_Pete OpenFOAM Programming & Development 6 April 28, 2014 01:53


All times are GMT -4. The time now is 11:02.