CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Meshing & Mesh Conversion

How can I rotate this?:

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

Reply
 
LinkBack Thread Tools Display Modes
Old   August 6, 2012, 04:15
Default How can I rotate this?:
  #1
Member
 
Alexander A
Join Date: Jun 2012
Posts: 53
Rep Power: 5
A.A. is on a distinguished road
I want to rotate some patches.

Please see the attached picture.
The big circle is a patch and the five smaller circles in the big circle are patches.
I want to rotate the big circle patch and the smaller circles with it. And also the smaller circle patches doing oscillating rotating motion.

How can I do this?

I am absolute beginner, so could you please explain in detail or give me an example.

Thanks in advance,
Alex
Attached Images
File Type: jpg HybroMesh1.jpg (99.9 KB, 95 views)
A.A. is offline   Reply With Quote

Old   August 6, 2012, 08:14
Default
  #2
Member
 
Alexander A
Join Date: Jun 2012
Posts: 53
Rep Power: 5
A.A. is on a distinguished road
Hi,

when I try t to rotate first only the big circle by typing this:

dynamicFvMesh solidBodyMotionFvMesh;

motionSolverLibs ( "libfvMotionSolvers.so" );

solidBodyMotionFvMeshCoeffs
{

solidBodyMotionFunction multiMotion;
multiMotionCoeffs
{
cellZone cyclorotor;
{
solidBodyMotionFunction rotatingMotion;
rotatingMotionCoeffs
{
CofG (0 0 0);
radialVelocity (0 360 0);
}
}
}
}

the whole Mesh is rotating from what I can see in paraFoam

Q1) Is this the right function to do the motions describes above?
Q2) And if so what do I do wrong, because the entire Mesh is rotating?

Regards
Alex
A.A. is offline   Reply With Quote

Old   August 7, 2012, 09:49
Default
  #3
Member
 
Alexander A
Join Date: Jun 2012
Posts: 53
Rep Power: 5
A.A. is on a distinguished road
Hi,
does anybody know why with the above mentioned code, the whole Mesh is rotating but not only the chosen patch?

Please give me Ideas, did anybody have a similar problem?

If you wish I can send you the whole case to find the problems solution.

Many thanks in advance,
Alex
A.A. is offline   Reply With Quote

Old   August 7, 2012, 11:15
Default
  #4
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Alex,

A few questions:
  1. What tutorial are you using as reference?
  2. Which OpenFOAM version are you using?
  3. What type of solver do you plan on using? MRF or GGI/AMI?
Best regards,
Bruno

Last edited by wyldckat; August 7, 2012 at 11:15. Reason: added point 3
wyldckat is offline   Reply With Quote

Old   August 8, 2012, 03:41
Default
  #5
Member
 
Alexander A
Join Date: Jun 2012
Posts: 53
Rep Power: 5
A.A. is on a distinguished road
Hi Bruno,

Q1) I am using the OpenFOAM-2.01 /tutorials/multiphase/interDymFoam/ras/testTubeMixer/constant/dynamicMeshDict-file which I found in the internet which shows solidBodyMotionFunction multiMotion.

Q2) I am using OpenFOAM version 2.1.1.

Q3) I use solver pimpleDyMFoam to do solidBodyMotion.
I ve never heared of MRF or GGI/AMI

Regards,
Alex
A.A. is offline   Reply With Quote

Old   August 8, 2012, 06:33
Default
  #6
Member
 
Alexander A
Join Date: Jun 2012
Posts: 53
Rep Power: 5
A.A. is on a distinguished road
Hi Bruno,

you wrote something of AMI, so I tried to use the mixerVesselAMI2D tutorial in pimpleDyMFoam. I copied my blockMeshDict file in it and modified 0/p und 0/U also dynamicMeshDict file and ControlDict file. But I get the following error message:

/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.1.1 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 2.1.1-221db2718bbb
Exec : pimpleDyMFoam
Date : Aug 08 2012
Time : 12:31:06
Host : "ubuntu"
PID : 3118
Case : /home/gzabos/OpenFOAM/gzabos-2.1.1/run/tutorials/incompressible/pimpleDyMFoam/hybro3
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0

Selecting dynamicFvMesh solidBodyMotionFvMesh
Selecting solid-body motion function rotatingMotion
Applying solid body motion to cellZone cyclorotor
#0 Foam::error:rintStack(Foam::Ostream&) in "/opt/openfoam211/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#1 Foam::sigSegv::sigHandler(int) in "/opt/openfoam211/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#2 in "/lib/x86_64-linux-gnu/libc.so.6"
#3 Foam::solidBodyMotionFvMesh::solidBodyMotionFvMesh (Foam::IOobject const&) in "/opt/openfoam211/platforms/linux64GccDPOpt/lib/libdynamicFvMesh.so"
#4 Foam::dynamicFvMesh::addIOobjectConstructorToTable <Foam::solidBodyMotionFvMesh>::New(Foam::IOobjec t const&) in "/opt/openfoam211/platforms/linux64GccDPOpt/lib/libdynamicFvMesh.so"
#5 Foam::dynamicFvMesh::New(Foam::IOobject const&) in "/opt/openfoam211/platforms/linux64GccDPOpt/lib/libdynamicFvMesh.so"
#6
in "/opt/openfoam211/platforms/linux64GccDPOpt/bin/pimpleDyMFoam"
#7 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#8
in "/opt/openfoam211/platforms/linux64GccDPOpt/bin/pimpleDyMFoam"
Segmentation fault (core dumped)

I dont know what I am doing wrong, can you give me ideas or do you know what can be the reason for this error?

Regards,
Alex
A.A. is offline   Reply With Quote

Old   August 8, 2012, 08:40
Default
  #7
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Quote:
Originally Posted by A.A. View Post
I dont know what I am doing wrong, can you give me ideas or do you know what can be the reason for this error?
Quick answer: You took a bigger step than you should have! That's what you did wrong .

Given your experience, what you should do is to take smaller steps:
  1. You should first study on how the tutorial works.
  2. Then gradually modify the tutorial to get a feel on how things work.
  3. Then simplify the mesh as much as possible, for understanding how things work. This mesh is generated using m4, which is a macro/scripting application, so you might want to try and understand how to do it with or without m4.
  4. Only after you fully understand how the tutorial works and how you can modify it, only then you can/should start gradually implementing your mesh.
After your first successful implementation, only then you can start go around replacing meshes at your own will and desire
wyldckat is offline   Reply With Quote

Old   August 8, 2012, 08:56
Default
  #8
Member
 
Alexander A
Join Date: Jun 2012
Posts: 53
Rep Power: 5
A.A. is on a distinguished road
Hi Bruno,

I have only this week left to get my case run. So I can't experiment much.
Could you please tell my how I can run this case and replace m4 mesh generation with my mesh.

Just give me something that I can run the case, its very urgent.
I also will follow your steps as far as I can go in these three days.

Many thanks in advance,
I really appreciate your help,
Alex
A.A. is offline   Reply With Quote

Old   August 8, 2012, 09:15
Default
  #9
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Alex,

Sorry, but I'm busy as well this week and AMI is not a piece of cake. I suggest you try the sub-forum CFD Freelancers and request help there.

Best regards and good luck!
Bruno
wyldckat is offline   Reply With Quote

Old   August 8, 2012, 09:40
Default
  #10
Member
 
Alexander A
Join Date: Jun 2012
Posts: 53
Rep Power: 5
A.A. is on a distinguished road
Ok

Thanks Bruno, I will try that.

Regards,
Alex
A.A. is offline   Reply With Quote

Reply

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
surfaceTransformPoints -rotate ynos OpenFOAM Post-Processing 1 July 11, 2012 15:35
[GAMBIT] Rotate and revolute possible ? Ijaz ANSYS Meshing & Geometry 19 January 27, 2012 00:36
[ANSYS Meshing] meshing for rotate and revolute Ijaz ANSYS Meshing & Geometry 0 December 25, 2011 17:51
How to rotate a wall?( with udf) pejmanpark Fluent UDF and Scheme Programming 0 July 13, 2009 07:37
CFX 5.5 how to make it rotate? Marco CFX 1 November 11, 2004 17:35


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