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

[swak4Foam] How to save the initial positions of a boundary in groovyBC

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By gschaider

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 5, 2017, 05:23
Default How to save the initial positions of a boundary in groovyBC
  #1
New Member
 
Join Date: Sep 2015
Posts: 1
Rep Power: 0
mahbod_mbs is on a distinguished road
p { margin-bottom: 0.1in; line-height: 120%; } Hi
I am going to move some of the boundaries in my simulation based on a desired function. So, implementing groovyBC in pointDisplacement file (displacementLaplacian is used for dynamic mesh), I apply the desired expression on the boundaries. However, I have to use the initial positions of the vertices of a boundary ( pts().x and pts().y ) in other time steps. I do not know how to save the initial positions of the vertices (at t=0) to be available for other time steps.
Any help/hint is appreciated.
mahbod_mbs is offline   Reply With Quote

Old   July 11, 2017, 21:20
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by mahbod_mbs View Post
p { margin-bottom: 0.1in; line-height: 120%; } Hi
I am going to move some of the boundaries in my simulation based on a desired function. So, implementing groovyBC in pointDisplacement file (displacementLaplacian is used for dynamic mesh), I apply the desired expression on the boundaries. However, I have to use the initial positions of the vertices of a boundary ( pts().x and pts().y ) in other time steps. I do not know how to save the initial positions of the vertices (at t=0) to be available for other time steps.
Any help/hint is appreciated.
Look for "storedVariables" in the examples. storedVariables are "remembered" between time-steps and have to have an initial value (which can be an expression)
mahbod_mbs likes this.
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Reply

Tags
groovybc, pointdisplacement, swak4foam


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
pimpleDyMFoam computation randomly stops babapeti OpenFOAM Running, Solving & CFD 5 January 24, 2018 06:28
Extrusion with OpenFoam problem No. Iterations 0 Lord Kelvin OpenFOAM Running, Solving & CFD 8 March 28, 2016 12:08
Wrong fluctuation of pressure in transient simulation caitao OpenFOAM Running, Solving & CFD 2 March 5, 2015 22:33
Unstabil Simulation with chtMultiRegionFoam mbay101 OpenFOAM Running, Solving & CFD 13 December 28, 2013 14:12
Error while running rhoPisoFoam.. nileshjrane OpenFOAM Running, Solving & CFD 8 August 26, 2010 13:50


All times are GMT -4. The time now is 16:00.